AreNotEqual() public static method

Asserts that expected and actual are not exactly equal.
public static AreNotEqual ( IEnumerable expected, IEnumerable actual ) : void
expected IEnumerable The first IEnumerable of objects to be considered
actual IEnumerable The second IEnumerable of objects to be considered
return void
 /// <summary>CollectionAssert.AreNotEqual</summary>
 public static void IsNotCollection <T>(this IEnumerable <T> actual, IEnumerable <T> notExpected, Func <T, T, bool> equalityComparison, string message = "")
 {
     CollectionAssert.AreNotEqual(notExpected.ToArray(), actual.ToArray(), new ComparisonComparer <T>(equalityComparison), message);
 }
Example #2
0
 public void FriendOrFoeTest6()
 {
     string[] expected = { "Ryan" };
     string[] names    = { };
     CollectionAssert.AreNotEqual(expected, Kata.FriendOrFoe(names));
 }
 /// <summary>CollectionAssert.AreNotEqual</summary>
 public static void IsNotCollection <T>(this IEnumerable <T> actual, IEnumerable <T> notExpected, string message = "")
 {
     CollectionAssert.AreNotEqual(notExpected.ToArray(), actual.ToArray(), message);
 }
Example #4
0
 public void FriendOrFoeTest4()
 {
     string[] expected = { "" };
     string[] names    = { "Ryan", "Mark", "Jimmy" };
     CollectionAssert.AreNotEqual(expected, Kata.FriendOrFoe(names));
 }