Beispiel #1
0
        public void Eat_SuppliedDogFood_ShouldNotBeHungry()
        {
            // Arrange
            var dog = new Dog("dawg");
            var dogFood = new DogFood();

            // Act
            dog.Feed(dogFood);

            // Assert
            Assert.IsFalse(dog.IsHungry);
        }
Beispiel #2
0
        public void Eat_SuppliedCatFood_ShouldStillBeHungry()
        {
            // Arrange
            var dog = new Dog("dawg");
            var catFood = new CatFood();

            // Act
            dog.Feed(catFood);

            // Assert
            Assert.IsTrue(dog.IsHungry);
        }
Beispiel #3
0
        public void Move_DogNotHungry_ShouldMakeDogHungry()
        {
            // Arrange
            var dog = new Dog("Lady Dawg");
            dog.Feed(new DogFood());

            // Act
            dog.Move();

            // Assert
            Assert.True(dog.IsHungry);
        }