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

IsTrue() public method

Asserts that an value is True.
public IsTrue ( ) : void
return void
        public void IsTrue()
        {
            if (!(subject is bool)) ThrowError("Value is not a boolean.");
            if ((bool)subject != true) ThrowError("Value should be True.");
        }