Programming Index Cards

August 3, 2008

Test Driven Development Using NUnit in C#

Filed under: Unit Testing, c#, programming — apcig @ 3:56 pm

Read the full article

Test Driven Development emphasizes the … need to prepare test scenarios or test cases before writing the code itself… It requires that the programmer be very clear about what tests the program should pass and what test it should fail, bringing such concerns to the forefront of the software design process… An automated job is one that’s always very, very easy to do. These automated tests are meant to be run every time there’s a code change and are referred to as unit tests.

Unit testing with NUnit is useful for testing class libraries that makeup an ASP.NET application, but is not designed to test the UI portions of an ASP.NET application. There is, however, an additional free tool, NUnitAsp, that is designed to provide unit testing for the GUI portion of a Web application.

Blog at WordPress.com.