Skip to content

Assert.Null

jnm2 edited this page Mar 18, 2017 · 5 revisions

Assert.Null and Assert.IsNull test that the specified object is null. The two forms are provided for compatibility with past versions of NUnit and NUnitLite.

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

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

See also...

Clone this wiki locally