BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | Next >> |
NUnit Expected ExceptionsNUnit 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 ValuesQueuing 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 TestsNUnit 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# ExpressDebugging 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 MocksUsing 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 FakesUsing 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 StubsUsing 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 AssertionsNUnit 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 AssertionsNUnit 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 AssertionsNUnit 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.
<< Previous | 1 | 2 | 3 | Next >> |