Exemplo n.º 1
0
        public void Can_Check_And_Add_Animal_To_Wagon_And_SpaceLeft_Lowers()
        {
            Animal animal            = new Animal(AnimalSize.Large, AnimalType.Carnivore);
            int    expectedSpaceLeft = wagon.MaxSpace - (int)animal.AnimalSize;

            bool canAdd = wagon.CheckAnimalAndAddToWagon(animal);

            Assert.AreEqual(expectedSpaceLeft, wagon.SpacesLeft);
            Assert.AreEqual(true, canAdd);
        }