public void Move_DogNotHungry_ShouldMakeDogHungry() { // Arrange var dog = new Dog("Lady Dawg"); dog.Feed(new DogFood()); // Act dog.Move(); // Assert Assert.True(dog.IsHungry); }
public void Move_IsHungry_ShouldThrowArgumentException() { // Arrange var dog = new Dog("Lord Dawg"); // Act var exception = Assert.Throws<ArgumentException>(() => dog.Move()); // Assert StringAssert.Contains("Cannot move while hungry", exception.Message); }