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