Beispiel #1
0
        public static bool IsTrue(bool condition)
        {
            CheckPointState <bool> checkpoint = new CheckPointState <bool>();

            checkpoint.CheckCondition += Assert.IsTrue;
            checkpoint.CatchErrors    += Errors.Add;
            return(checkpoint.Check(condition));
        }
Beispiel #2
0
        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));
        }