Пример #1
0
		public void CheckAnimal_Test()
		{
			//Arrange
			bool expectedOutcome = false;
			Wagon wagon = new Wagon();

			Animal carnivore = new Animal(FoodEnum.FoodType.Carnivore, 5);
			Animal herbivore = new Animal(FoodEnum.FoodType.Herbivore, 3);

			wagon.AddAnimal(carnivore);
			//Act
			bool actualOutcome = wagon.CheckAnimal(herbivore);

			//Assert
			Assert.AreEqual(expectedOutcome, actualOutcome);
		}