예제 #1
0
        public void Returns_Empty_Results_When_Given_One_Person()
        {
            var list = new List<Person>() { sue };
            var finder = new Finder(list);

            var result = finder.FindBornClosest();

            Assert.Null(result.Younger);
            Assert.Null(result.Older);
        }
예제 #2
0
        public void Returns_Closest_Two_For_Two_People()
        {
            var list = new List<Person>() { sue, greg };
            var finder = new Finder(list);

            var result = finder.FindBornClosest();

            Assert.Same(sue, result.Younger);
            Assert.Same(greg, result.Older);
        }