Open.Core.Assert.IsNull C# (CSharp) Method

IsNull() public method

Asserts that an object is not null.
public IsNull ( ) : void
return void
        public void IsNull()
        {
            if (subject != null) ThrowError(string.Format("The value '{0}' should actually be null.", Format(subject)));
        }