public static bool IsTrue(bool condition) { CheckPointState <bool> checkpoint = new CheckPointState <bool>(); checkpoint.CheckCondition += Assert.IsTrue; checkpoint.CatchErrors += Errors.Add; return(checkpoint.Check(condition)); }
public static bool AreEqual(object expected, object actual) { CheckPointState <object> checkpoint = new CheckPointState <object>(); checkpoint.CompareValue += Assert.AreEqual; checkpoint.CatchErrors += Errors.Add; return(checkpoint.Check(expected, actual)); }