public void DeepEqualsSimple_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.DeepEqualsSimple(listB, StringComparer.OrdinalIgnoreCase),
         "DeepEqualsSimple should be false for lists of different length.");
 }
 public void DeepEqualsSimple_WithComparerOneNull_ReturnsFalse()
 {
     List<string> list = new List<string> {"a", "b", "c", "d", "e"};
     Assert.IsFalse(
         list.DeepEqualsSimple(null, StringComparer.OrdinalIgnoreCase),
         "DeepEqualsSimple should be false if only one list is null.");
     Assert.IsFalse(
         ((List<string>) null).DeepEqualsSimple(list, StringComparer.OrdinalIgnoreCase),
         "DeepEqualsSimple should be false if only one list is null.");
 }
 public void DeepEqualsSimple_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.DeepEqualsSimple(listB, StringComparer.OrdinalIgnoreCase),
         "DeepEqualsSimple should be false for lists of identical length but with different values.");
 }
 public void DeepEqualsSimple_WithComparerIdenticalLists_ReturnsTrue()
 {
     List<string> list = new List<string> {"a", "b", "c", "d", "e"};
     Assert.IsTrue(
         list.DeepEqualsSimple(list, StringComparer.OrdinalIgnoreCase),
         "DeepEqualsSimple should be true for identical lists.");
 }
 public void DeepEqualsSimple_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.DeepEqualsSimple(list2, StringComparer.OrdinalIgnoreCase),
         "DeepEqualsSimple should be true for list where all items are deemed equivilant by the comparer supplied.");
 }
 public void DeepEqualsSimple_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.DeepEqualsSimple(listB),
         "DeepEqualsSimple should be false for lists of different length.");
 }
 public void DeepEqualsSimple_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.DeepEqualsSimple(listB),
         "DeepEqualsSimple should be false for lists of identical length but with different values.");
 }
 public void DeepEqualsSimple_ListsIdenticalValuesInDifferentOrder_ReturnsTrue()
 {
     List<int> listA = new List<int> {1, 2, 3, 4, 5, 6};
     List<int> listB = new List<int> {2, 3, 1, 6, 5, 4};
     Assert.IsTrue(
         listA.DeepEqualsSimple(listB),
         "DeepEqualsSimple should be true for lists of identical content but with different orders.");
 }
 public void DeepEqualsSimple_OneNull_ReturnsFalse()
 {
     List<int> list = new List<int> {1, 2, 3, 4, 5, 6};
     Assert.IsFalse(list.DeepEqualsSimple(null), "DeepEqualsSimple should be false if only one list is null.");
     Assert.IsFalse(
         ((List<int>) null).DeepEqualsSimple(list),
         "DeepEqualsSimple should be false if only one list is null.");
 }
 public void DeepEqualsSimple_IdenticalLists_ReturnsTrue()
 {
     List<int> list = new List<int> {1, 2, 3, 4, 5, 6};
     Assert.IsTrue(list.DeepEqualsSimple(list), "DeepEqualsSimple should be true for identical lists.");
 }