Beispiel #1
0
        public static object ShouldNotEqual(this object value, object expectedValue)
        {
            string message = string.Format("Should {0} not equals {1}", value, expectedValue);

            Assert.AreNotEqual(expectedValue, value, message.WithKoPrefix());
            AssertHelper.WriteLineOk(message);
            return(value);
        }
Beispiel #2
0
        public static T ShouldEqual <T>(this T value, object expectedValue)
        {
            string message = string.Format("Should {0} equals {1}", value, expectedValue);

            Assert.AreEqual(expectedValue, value, message.WithKoPrefix());
            AssertHelper.WriteLineOk(message);
            return(value);
        }