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

IsFalse() public method

Asserts that an value is False.
public IsFalse ( ) : void
return void
        public void IsFalse()
        {
            if (!(subject is bool)) ThrowError("Value is not a boolean.");
            if ((bool)subject != false) ThrowError("Value should be False.");
        }
        #endregion