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.

public static void Fail();

See Also

Assert Class | csUnit Namespace | Assert.Fail Overload List