 | NUnit Expected Exceptions When code enters an unexpected state, or when a member is called with invalid parameters, it is usual to throw an exception. When writing unit tests, the test code should ensure that the correct exceptions are thrown. |
 | Queuing Moq Return Values Some testing scenarios require that a dependency's methods are called repeatedly. When the dependency is mocked using the Moq framework, these calls can be configured with expectations to return different results each time. |
 | NUnit Timed Tests Sometimes when performing automated testing is is necessary to ensure that a test is completed within a specified period of time. NUnit helps this type of testing with attributes that fail tests that run for longer than a specified duration. |
 | Debugging NUnit Tests in C# Express Microsoft Visual C# Express is a free integrated development environment for developing software using the C# programming language. A limitation of the Express edition is that it does not support add-ins, making debugging tests more difficult. |
 | Using Mocks The fourteenth part of the Automated Unit Testing tutorial concludes the description of isolating a class from its dependencies using test doubles. This article explains how mock objects can be used to fake large classes and to test expected behaviour. |
 | Using Fakes The thirteenth part of the Automated Unit Testing tutorial continues the discussion of test doubles that can be used to isolate code under test from its dependencies. This article describes fake objects, which have more functionality than stubs. |
 | Using Stubs The twelfth part of the Automated Unit Testing tutorial discusses the use of stubs. Stubs are used to simplify the testing of code that relies upon other classes, helping a unit of code to be isolated from its dependencies. |
 | NUnit Utility Assertions The eleventh part of the Automated Unit Testing tutorial completes the examination of the NUnit Framework's assert methods. This instalment considers the utility asserts, which send instructions to the test runner, rather than performing tests. |
 | NUnit Exception Assertions The tenth part of the Automated Unit Testing tutorial continues looking at the NUnit framework's assertions. This article describes the assert methods that are used to test that the correct exceptions are thrown by the code under test. |
 | NUnit Type Assertions The ninth part of the Automated Unit Testing tutorial continues the examination of the assertion commands provided by the NUnit framework. This article describes the type assertions, which check the types of objects or structures. |