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

IsNot() public method

Asserts that an object is not equal to another object (uses != comparison).
public IsNot ( object value ) : void
value object The value to compare to.
return void
        public void IsNot(object value)
        {
            if (subject == value) ThrowError(string.Format("The two values '{0}' and '{1}' should not be equal.", Format(subject), Format(value)));
        }