public void Pet_Feed_A_Pet() { OrganicPet pet = new OrganicPet("Dog", "Alexa", 2); pet.Feed(); Assert.Equal(10, pet.Fullness); }
public void Feed_Should_Decrease_Hunger_By_40() { testPet.Hunger = 50; int testPetHunger = testPet.Hunger; testPet.Feed(); Assert.Equal(testPetHunger - 10, testPet.Hunger); }
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()); }
public void Hunger_Should_Decrease_Hunger_By_40() { organicPets.Feed(); Assert.Equal(10, organicPets.GetHunger()); }