예제 #1
0
		public void CalculateCarryWeight_Test()
		{
			//Arrange
			int expectedCarryWeight = 5;
			Animal animal = new Animal(FoodEnum.FoodType.Carnivore, 5);

			Wagon wagon = new Wagon();
			wagon.AddAnimal(animal);

			//Act
			int actualCarryWeight = wagon.CalculateCarryweight();

			//Assert
			Assert.AreEqual(expectedCarryWeight, actualCarryWeight);
		}