コード例 #1
0
        public void SetGetIsDead_SetsGetsIsDead_Bool()
        {
            TamagotchiPet pet = new TamagotchiPet("Anton");

            pet.SetIsDead(true);
            Assert.AreEqual(true, pet.GetIsDead());
        }
コード例 #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());
        }