Skip to content

Assert.Pass

Chris edited this page Sep 5, 2016 · 6 revisions

The Assert.Pass method allows you to immediately end the test, recording it as successful. Since it causes an exception to be thrown, it is more efficient to simply allow the test to return. However, Assert.Pass allows you to record a message in the test result and may also make the test easier to read in some situations. Additionally, like the other methods on this page, it can be invoked from a nested method call with the result of immediately terminating test execution.

Assert.Pass();
Assert.Pass( string message, params object[] parms );

####See also...

Clone this wiki locally