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); }
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); }
public void FriendOrFoeTest4() { string[] expected = { "" }; string[] names = { "Ryan", "Mark", "Jimmy" }; CollectionAssert.AreNotEqual(expected, Kata.FriendOrFoe(names)); }