Exemple #1
0
        public void TestGetMostPopularIceCreamInfamily()
        {
            var service = new AncestorService();
            var person  = BuildPersonWithFamily();

            var iceCream = service.GetMostPopularIceCreamInfamily(person);

            Assert.Equal("chocolate", iceCream);
        }
Exemple #2
0
        public void TestGetAncestorNames()
        {
            var service = new AncestorService();
            var person  = BuildPersonWithFamily();

            var ancestorNames = service.GetAncestorNames(person);


            Assert.Equal(4, ancestorNames.Count());
            Assert.Contains("louis", ancestorNames);
            Assert.Contains("leona", ancestorNames);
            Assert.Contains("mike", ancestorNames);
            Assert.Contains("kerry", ancestorNames);

            Assert.DoesNotContain("joey", ancestorNames);
        }