public void Returns_Empty_Results_When_Given_One_Person() { var list = new List<Person>() { sue }; var finder = new Finder(list); var result = finder.FindRelationship(FT.One); Assert.Null(result.Person1); Assert.Null(result.Person2); }
public void Returns_Furthest_Two_For_Four_People() { var list = new List<Person>() { greg, mike, sarah, sue }; var finder = new Finder(list); var result = finder.FindRelationship(FT.Two); Assert.Same(sue, result.Person1); Assert.Same(sarah, result.Person2); }
public void Returns_Closest_Two_For_Two_People() { var list = new List<Person>() { sue, greg }; var finder = new Finder(list); var result = finder.FindRelationship(FT.One); Assert.Same(sue, result.Person1); Assert.Same(greg, result.Person2); }