<PackageReference Include="NUnit" Version="3.0.0-beta-5" />

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()

public static void Expect<TActual>(TActual actual, IResolveConstraint expression)

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.

public void Expect(bool condition, string message, object[] args)

Asserts that a condition is true. If the condition is false the method throws an AssertionException. Works Identically to That.

public void Expect(bool condition)

Asserts that a condition is true. If the condition is false the method throws an AssertionException. Works Identically to That.

public void Expect<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr)

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.

public void Expect(TestDelegate code, IResolveConstraint constraint)

Asserts that the code represented by a delegate throws an exception that satisfies the constraint provided.

public ListMapper Map(ICollection original)

Returns a ListMapper based on a collection.