public void SetBuryGetIsBuried_GetsSetsBuried_True() { TamagotchiPet pet = new TamagotchiPet("Tan"); pet.Bury(); Assert.AreEqual(true, pet.IsBuried()); }
public ActionResult BuryPet(int id) { TamagotchiPet pet = TamagotchiPet.Find(id); pet.Bury(); List <TamagotchiPet> allPets = TamagotchiPet.GetAll(); return(View("DisplayPetData", allPets)); }