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 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | ... | Next >> |
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.
Show Advanced Members in Visual StudioShow Advanced Members in Visual Studio
The Intellisense system within Visual Studio allows the automatic completion of object members such as methods, properties and events whilst typing. This speeds up development and reduces typing errors. However, sometimes some members are unavailable.
Creating Custom NUnit Assertion MethodsCreating Custom NUnit Assertion Methods
NUnit provides a large number of assertion methods that can test values for correctness during a test run. For complex and repetitive test scenarios, it can be useful to create custom assertions that can be reused in a number of tests.
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.
Mocking Static and Sealed Types Using WrappersMocking Static and Sealed Types Using Wrappers
A key concept in unit testing is isolating the code under test from its dependencies. However, when those dependencies are static or sealed types, creating appropriate test doubles, such as stubs or mocks, becomes 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.
NUnit Collection AssertionsNUnit Collection Assertions
The basic assertions provided by the NUnit framework can be used for all unit tests. To make unit tests more readable, there are other assertion types that more clearly express the intent of the tests. This article describes the collection assertions.
Mocking Events with MoqMocking Events with Moq
When a class has dependencies that raise events, the reaction to those events should be unit tested. To do so, the dependencies should be isolated from the code under test with the use of test doubles. One option is to use Moq to create mock objects.
NUnit Equality AssertionsNUnit Equality Assertions
The fifth part of the Automated Unit Testing tutorial begins a look at the assertion commands provided by the NUnit framework. These assertions are used in unit tests to ensure that the results of operations are as expected.
<< Previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | ... | Next >> |