public void AnimalWorldReceivesSouthAmerica_AndItsCarnivoreIsNotALion() { var animalWorld = new AnimalWorld(new SouthAmericaFactory()); var result = animalWorld.FoodChain(); Assert.True(result); Assert.IsNotType <Lion>(animalWorld.carnivore); }
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); }
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); }