public void FindMatchingPairs1CharCountMapsCompleteTestsTest3LongList2() { // Initialize lists. var list1 = new List <int> { 1, 2, 4, 7, 8, 3 }; var list2 = new List <int> { 3, 4, 6, 4, 3, 18, 30, 50, 51, 52, 53 }; // Initialize expected. var expected = new List <int> { 4, 3 }; // Call method. var actual = FindMatchingPairs2SortAndParseComplete.FindMatchingPairs(list1, list2); // Since order is not necessarily consistent. expected.Sort(); actual.Sort(); // Do tests. CollectionAssert.AreEqual(expected, actual); }
public void FindMatchingPairs2SortAndParseCompleteTestsTest5AllMatches() { // Initialize lists. var list1 = new List <int> { 1, 2, 8, 7, 5, 3 }; var list2 = new List <int> { 1, 2, 8, 7, 5, 3 }; // Initialize expected. var expected = new List <int> { 1, 2, 8, 7, 5, 3 }; // Call method. var actual = FindMatchingPairs2SortAndParseComplete.FindMatchingPairs(list1, list2); // Since order is not necessarily consistent. expected.Sort(); actual.Sort(); // Do tests. CollectionAssert.AreEqual(expected, actual); }
public void FindMatchingPairs2SortAndParseCompleteTestsTest10NullList2() { try { FindMatchingPairs2SortAndParseComplete.FindMatchingPairs(new List <int> { 1, 2, 4, 7, 8, 3 }, null); } catch (ArgumentException) { Assert.IsTrue(true); return; } Assert.Fail(); }