Ejemplo n.º 1
0
        public void Pet_Feed_A_Pet()
        {
            OrganicPet pet = new OrganicPet("Dog", "Alexa", 2);

            pet.Feed();

            Assert.Equal(10, pet.Fullness);
        }
Ejemplo n.º 2
0
        public void Feed_Should_Decrease_Hunger_By_40()
        {
            testPet.Hunger = 50;
            int testPetHunger = testPet.Hunger;

            testPet.Feed();
            Assert.Equal(testPetHunger - 10, testPet.Hunger);
        }
Ejemplo n.º 3
0
        public void Stats_Dont_Exceed_Max()
        {
            OrganicPet pet = new OrganicPet("Fido", "Organic", "Dog", 2, "Brown");

            for (int i = 0; i < 100; i++)
            {
                pet.Feed();
            }

            Assert.Equal(0, pet.Hunger);
        }
        public void Feed_Should_Decrease_Hunger_By_40()
        {
            testOrganicPet.Feed();

            Assert.Equal(10, testOrganicPet.GetHunger());
        }
        public void Feed_Should_Decrease_Hunger_By_5()
        {
            testOPet.Feed();

            Assert.Equal(55, testOPet.GetHunger());
        }
Ejemplo n.º 6
0
        public void Hunger_Should_Decrease_Hunger_By_40()
        {
            organicPets.Feed();

            Assert.Equal(10, organicPets.GetHunger());
        }