Back to Nunit

Assert.Ignore

docs/articles/nunit/writing-tests/assertions/special-assertions/Assert.Ignore.md

latest620 B
Original Source

Assert.Ignore

The Assert.Ignore method provides you with the ability to dynamically cause a test or suite to be ignored at runtime. It may be called in a test, setup or fixture setup method. We recommend that you use this only in isolated cases. The category facility is provided for more extensive inclusion or exclusion of tests or you may elect to simply divide tests run on different occasions into different assemblies.

csharp
Assert.Ignore();
Assert.Ignore(string message);

See Also