Assert.IsNotNull

Assert.IsNotNull tests that an object is not null.

Assert.IsNotNull(object obj, string message=null, params object[] args);

You may use Assert.That to achieve the same result. The two statements below are equivalent:

Assert.IsNotNull(anObject);
Assert.That(anObject, Is.Not.Null);