Links / guides for testing nunit modules

Can anyone suggest some good links / tutorials to get started with nunit and visual studio 2008. (Apart from the Nunit documentation itself!). I specifically want to create a test project in comparison with 2008.

0
source share
4 answers

There is a good book called "Pragmatic Unit Testing with NUnit" by Thompson and Hunt.

How I started, and it gives a good idea.

For more information on how and what to test in general, I recommended Beck. Unit Testing by Osherov and Test Driven Development.

Also take a look at this useful summary card also from Thompson and Hunt.

http://media.pragprog.com/titles/utj/StandaloneSummary.pdf .

These concepts are further explained in their book.

Update: I am not sure that I can recommend any books that describe the mechanics of creating your project, but I can offer some basic recommendations. Create a separate test project for each project that you want to test. Make sure you do not mix system integration / testing with your unit tests. One way to ensure this is to distinguish between test projects. for example, I might have something like

  • CustomLibraryCode.proj // source project
  • CustomlibraryCodeTests.Unit.proj // unit test project
  • CustomLibraryCodeTests.Integration.proj // Integration Testing Project

This means that your unit tests, which should be run quickly and easily, can be performed in isolation from integration tests, which can usually have dependencies on the database, file system, etc. and tend to be slower and more fragile.

+4
source

In addition to the other books mentioned, there is a new good book with many examples: Growing Object-Oriented Software Guided by Tests

+3
source

I just got The Art of Unit Testing with .NET examples from Roy Osherove. You can get it on Amazon, and here is the site: http://artofunittesting.com/ . This is pretty easy to understand. The book is written with examples in VS 2008 and Nunit. He also mentions other test frames.

+1
source

Dimecasts have nice, short screencasts covering NUnit. The page lists them in reverse order, so start from the bottom and work!

0
source

Source: https://habr.com/ru/post/1338649/


All Articles