AssertionHelper
AssertionHelper is an optional base class for user tests,
allowing the use of shorter ids for constraints and
asserts and avoiding conflict with the definition of
Is, from which it inherits much of its
behavior, in certain mock object frameworks.
public AssertionHelper()
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and throwing an assertion exception on failure.
public static void Expect<TActual>(TActual actual, IResolveConstraint expression, string message, object[] args)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and throwing an assertion exception on failure.
Asserts that a condition is true. If the condition is false the method throws
an AssertionException. Works Identically to
That.
Asserts that a condition is true. If the condition is false the method throws
an AssertionException. Works Identically to That.
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and throwing an assertion exception on failure.
public void Expect<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, string message, object[] args)
Apply a constraint to an actual value, succeeding if the constraint
is satisfied and throwing an assertion exception on failure.
Asserts that the code represented by a delegate throws an exception
that satisfies the constraint provided.
Returns a ListMapper based on a collection.