public void DeepEquals_WithComparerListsWithVaryingNumberOfDuplicatedValues_ReturnsFalse()
 {
     List<string> listA = new List<string> {"a", "b", "d", "d", "e"};
     List<string> listB = new List<string> {"a", "b", "b", "d", "e"};
     Assert.IsFalse(
         listA.DeepEquals(listB, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be false for lists containing the same values, but with different amounts of each duplicated.");
 }
 public void DeepEquals_WithComparerListsOfDifferentSize_ReturnsFalse()
 {
     List<string> listA = new List<string> {"a", "b", "c", "d", "e"};
     List<string> listB = new List<string> {"a", "b", "c", "d", "e", "f"};
     Assert.IsFalse(
         listA.DeepEquals(listB, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be false for lists of different length.");
 }
 public void DeepEquals_WithComparerListsOfSameSizeButOneDifferentValue_ReturnsFalse()
 {
     List<string> listA = new List<string> {"a", "b", "c", "d", "e"};
     List<string> listB = new List<string> {"a", "b", "c", "z", "e"};
     Assert.IsFalse(
         listA.DeepEquals(listB, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be false for lists of identical length but with different values.");
 }
 public void DeepEquals_WithComparerEquivilantListsWithDuplicatedValues_ReturnsTrue()
 {
     List<string> listA = new List<string> {"a", "b", "B", "d", "e"};
     List<string> listB = new List<string> {"a", "B", "d", "B", "e"};
     Assert.IsTrue(
         listA.DeepEquals(listB, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be true for lists whose contents contains duplicates, but the same number of each .");
 }
 public void DeepEquals_WithComparerEquivilantLists_ReturnsTrue()
 {
     List<string> list1 = new List<string> {"a", "b", "C", "D", "e"};
     List<string> list2 = new List<string> {"a", "B", "c", "d", "e"};
     Assert.IsTrue(
         list1.DeepEquals(list2, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be true for list where all items are deemed equivilant by the comparer supplied.");
 }
 public void DeepEquals_WithComparerOneNull_ReturnsFalse()
 {
     List<string> list = new List<string> {"a", "b", "c", "d", "e"};
     Assert.IsFalse(
         list.DeepEquals(null, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be false if only one list is null.");
     Assert.IsFalse(
         ((List<string>) null).DeepEquals(list, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be false if only one list is null.");
 }
 public void DeepEquals_ListsOfDifferentSize_ReturnsFalse()
 {
     List<int> listA = new List<int> {1, 2, 3, 4, 5, 6};
     List<int> listB = new List<int> {1, 2, 3, 5, 6};
     Assert.IsFalse(listA.DeepEquals(listB), "DeepEquals should be false for lists of different length.");
 }
 public void DeepEquals_WithComparerIdenticalLists_ReturnsTrue()
 {
     List<string> list = new List<string> {"a", "b", "c", "d", "e"};
     Assert.IsTrue(
         list.DeepEquals(list, StringComparer.OrdinalIgnoreCase),
         "DeepEquals should be true for identical lists.");
 }
 public void DeepEquals_ListsWithVaryingNumberOfDuplicatedValues_ReturnsFalse()
 {
     List<int> listA = new List<int> {1, 2, 3, 3, 5, 6};
     List<int> listB = new List<int> {1, 2, 3, 5, 5, 6};
     Assert.IsFalse(
         listA.DeepEquals(listB),
         "DeepEquals should be false for lists containing the same values, but with different amounts of each duplicated.");
 }
 public void DeepEquals_EquivilantListsWithDuplicatedValues_ReturnsTrue()
 {
     List<int> listA = new List<int> {1, 2, 3, 4, 3, 6};
     List<int> listB = new List<int> {1, 4, 3, 3, 2, 6};
     Assert.IsTrue(
         listA.DeepEquals(listB),
         "DeepEquals should be true for lists whose contents contains duplicates, but the same number of each .");
 }
 public void DeepEquals_ListsOfSameSizeButOneDifferentValue_ReturnsFalse()
 {
     List<int> listA = new List<int> {1, 2, 3, 4, 5, 6};
     List<int> listB = new List<int> {1, 2, 3, 99, 5, 6};
     Assert.IsFalse(
         listA.DeepEquals(listB),
         "DeepEquals should be false for lists of identical length but with different values.");
 }
 public void DeepEquals_OneNull_ReturnsFalse()
 {
     List<int> list = new List<int> {1, 2, 3, 4, 5, 6};
     Assert.IsFalse(list.DeepEquals(null), "DeepEquals should be false if only one list is null.");
     Assert.IsFalse(((List<int>) null).DeepEquals(list), "DeepEquals should be false if only one list is null.");
 }
 public void DeepEquals_IdenticalLists_ReturnsTrue()
 {
     List<int> list = new List<int> {1, 2, 3, 4, 5, 6};
     Assert.IsTrue(list.DeepEquals(list), "DeepEquals should be true for identical lists.");
 }