public void Returns_Closest_Two_For_Four_People() { var list = new List <Person>() { greg, mike, sarah, sue }; IPeopleCompareFilter filter = new ClosesBirthdateCompareFilter(); var finder = new Finder(list, filter); var result = finder.Find(); Assert.Same(sue, result.Person1); Assert.Same(greg, result.Person2); }
public void Returns_Empty_Results_When_Given_One_Person() { var list = new List <Person>() { sue }; IPeopleCompareFilter filter = new ClosesBirthdateCompareFilter(); var finder = new Finder(list, filter); var result = finder.Find(); Assert.Null(result.Person1); Assert.Null(result.Person2); }