public void AsignAnimalsToWagon_Empty() { List <Animal> animals = null; IWagon wagon = new Wagon(); wagon.AsignAnimalsToWagon(animals); }
public void AsignAnimalsToWagon_Success() { AnimalList animalList = new AnimalList(); IWagon wagon = new Wagon(); wagon.AsignAnimalsToWagon(animalList.UnsortedAnimals); Assert.AreEqual(10, wagon.usedSpace); }
public void AsignAnimalsToWagon_EmptyAnimal() { List <Animal> animals = new List <Animal>() { new Herbivour() { name = "Squirl", food = FoodType.Plants, size = BodySize.Small }, new Herbivour() { name = "mice", food = FoodType.Plants, size = BodySize.Small }, null }; IWagon wagon = new Wagon(); wagon.AsignAnimalsToWagon(animals); }