public void RemovesNulls() { var list1 = new List <string>() { null, "email1" }; var list2 = new List <string>() { null }; var expected = new HashSet <string>() { "email1" }; AssertSetsEqual(expected, EmailCollator.Collate(list1, list2)); }
public void EliminatesDuplicates() { var list1 = new List <string>() { "email1", "email1" }; var list2 = new List <string>() { "email1", "email1" }; var expected = new HashSet <string>() { "email1" }; AssertSetsEqual(expected, EmailCollator.Collate(list1, list2)); }
public void CombinesTwoEmailListsIntoOne() { var list1 = new List <string>() { "email1", "email2" }; var list2 = new List <string>() { "emailA", "emailB" }; var expected = new HashSet <string>() { "email1", "email2", "emailA", "emailB" }; AssertSetsEqual(expected, EmailCollator.Collate(list1, list2)); }