Exemplo n.º 1
0
        [TestMethod] //fix this - how do I test random nums?
        public void FoodDecay_SubtractsFood_Int()
        {
            TamagotchiPet pet = new TamagotchiPet("Anton");

            pet.FoodDecay();
            Assert.AreEqual(pet.GetFood(), pet.GetFood());
        }
Exemplo n.º 2
0
        public void CheckVitals_ChecksIfPetIsDead_Bool()
        {
            TamagotchiPet pet = new TamagotchiPet("Tan");

            for (int i = 0; i < 20; i++)
            {
                pet.FoodDecay();
            }
            pet.CheckVitals();
            Assert.AreEqual(true, pet.GetIsDead());
        }