Assert.NotNull (anObject) vs Assert.IsNotNull (anObject)

These two methods exist in the NUnit.Framework.Assert namespace.

I just can't find what the difference is between the two. I am also wondering when to use which one.

+5
source share
1 answer

True, False, Null, and NotNull conditions have two forms. Is forms are compatible with earlier versions of the NUnit framework, and those that do not have Is are compatible with NUnitLite.

Got it here .

+7
source

Source: https://habr.com/ru/post/1234253/


All Articles