Esempio n. 1
0
        public void AnimalWorldReceivesSouthAmerica_AndItsCarnivoreIsNotALion()
        {
            var animalWorld = new AnimalWorld(new SouthAmericaFactory());

            var result = animalWorld.FoodChain();

            Assert.True(result);
            Assert.IsNotType <Lion>(animalWorld.carnivore);
        }
Esempio n. 2
0
        public void AnimalWorldReceivesSouthAmerica_AndGuepardoEatsMonkey()
        {
            var animalWorld = new AnimalWorld(new SouthAmericaFactory());

            var result = animalWorld.FoodChain();

            Assert.True(result);
            Assert.IsType <Guepardo>(animalWorld.carnivore);
            Assert.IsType <Monkey>(animalWorld.herbivore);
        }
Esempio n. 3
0
        public void AnimalWorldReceivesAfrica_AndLionEatsZebra()
        {
            var animalWorld = new AnimalWorld(new AfricaFactory());

            var result = animalWorld.FoodChain();

            Assert.True(result);
            Assert.IsType <Lion>(animalWorld.carnivore);
            Assert.IsType <Zebra>(animalWorld.herbivore);
        }