Exemplo n.º 1
0
        public void ConstructorTest_True()
        {
            TamagotchiAnimal tama = new TamagotchiAnimal("Lady");

            Assert.AreEqual(typeof(TamagotchiAnimal), tama.GetType());
            Assert.AreEqual("Lady", tama.Name);
        }
Exemplo n.º 2
0
        public ActionResult Create(string tamaName)
        {
            TamagotchiAnimal newTama = new TamagotchiAnimal(tamaName);

            return(RedirectToAction("Index"));
        }