예제 #1
0
        public void Cant_Add_Animal_To_Wagon_When_UsedSize_Is_Too_Big()
        {
            //Arrange
            Animal a          = new Animal(Size.Large, Sort.Herbivore, "Giraffe");
            Animal b          = new Animal(Size.Large, Sort.Herbivore, "Cow");
            Animal c          = new Animal(Size.Small, Sort.Herbivore, "Rabbit");
            bool   AnimalFits = false;

            //Act
            _wagon.AddAnimalToWagon(a);
            _wagon.AddAnimalToWagon(b);
            if (_wagon.DoesAnimalFit(c) == true)
            {
                AnimalFits = true;
            }

            //Assert
            Assert.IsFalse(AnimalFits);
        }