public static void then_should_add_food_value_to_hunger() { // Arrange var tamagatchi = new Tamagatchi { Hunger = 1 }; // Act tamagatchi.Feed(1); // Assert Assert.That(tamagatchi.Hunger, Is.EqualTo(2)); }
public static void then_should_add_one_to_feedings_if_food_value_is_two() { // Arrange var tamagatchi = new Tamagatchi { Feedings = 1 }; // Act tamagatchi.Feed(2); // Assert Assert.That(tamagatchi.Feedings, Is.EqualTo(2)); }