Again, there are two assertion interfaces which must match the UnitTest base.

public interface IAssertion<TTarget> ...

public interface IAssertion<TTarget, TReturnType> ...

There is one method in the interfaces, Verify:

void Verify(TTarget target);

void Verify(TTarget target, TReturnType returnValue);

In the implementation of these methods, you should use your unit test framework's Assert methods to verify that the test has passed.

Last edited Aug 15, 2011 at 1:04 PM by garymcleanhall, version 1


No comments yet.