csUnit Class Library

Assert.Fail Method

Call this method immediately after the line, that should have thrown an exception. To be used for checked exceptions.

Overload List

Call this method immediately after the line, that should have thrown an exception. To be used for checked exceptions.

public static void Fail();

Fail with custom message. Use with checked exceptions.

public static void Fail(string);

See Also

Assert Class | csUnit Namespace