public void SetGetIsDead_SetsGetsIsDead_Bool() { TamagotchiPet pet = new TamagotchiPet("Anton"); pet.SetIsDead(true); Assert.AreEqual(true, pet.GetIsDead()); }
public void CheckExp_DoesNotAddExpWhenPetIsDead_Int() { TamagotchiPet pet = new TamagotchiPet("Bit"); pet.SetIsDead(true); pet.CheckExp(); Assert.AreEqual(0, pet.GetExp()); }
public void CheckForLevel_DoesNotAddLevelDoesNotResetExpWhenPetIsDead_Int() { TamagotchiPet pet = new TamagotchiPet("Bit"); pet.AddExp(); pet.SetIsDead(true); pet.CheckForLevel(); Assert.AreEqual(1, pet.GetLevel()); Assert.AreEqual(1, pet.GetExp()); }