Monitor.Assert method (1 of 2)

Checks if the assertion holds, and if not, throws an AssertionFailureException exception.

protected void Assert(bool predicate)

See Also


Monitor.Assert method (2 of 2)

Checks if the assertion holds, and if not, throws an AssertionFailureException exception.

protected void Assert(bool predicate, string s, params object[] args)

See Also