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

Is() public method

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