Example #1
0
        public void AsignAnimalsToWagon_Empty()
        {
            List <Animal> animals = null;

            IWagon wagon = new Wagon();

            wagon.AsignAnimalsToWagon(animals);
        }
Example #2
0
        public void AsignAnimalsToWagon_Success()
        {
            AnimalList animalList = new AnimalList();
            IWagon     wagon      = new Wagon();

            wagon.AsignAnimalsToWagon(animalList.UnsortedAnimals);

            Assert.AreEqual(10, wagon.usedSpace);
        }
Example #3
0
        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);
        }