Ejemplo n.º 1
0
 public static void AreNotEqual(Object expected, Object actual, string message)
 {
     if (actual == expected)
     {
         Fail(AssertionMessageUtil.GetEqualityMessage(actual, expected, false), message);
     }
 }
Ejemplo n.º 2
0
 public static void AreEqual <T>(T expected, T actual, string message, IEqualityComparer <T> comparer)
 {
     if (typeof(Object).IsAssignableFrom(typeof(T)))
     {
         AreEqual((object)expected as Object, (object)actual as Object, message);
         return;
     }
     if (!comparer.Equals(actual, expected))
     {
         Fail(AssertionMessageUtil.GetEqualityMessage(actual, expected, true), message);
     }
 }