Ejemplo n.º 1
0
        public void Find_Test()
        {
            //Arrange
            Mon newMon = new Mon("Snorlax", 4, 2, 4, 3, 5, 6, 22);

            newMon.Save();

            //Act
            Mon result = Mon.Find(newMon.GetMonId());

            //Assert
            Console.WriteLine(result.GetMonName());
            Console.WriteLine(result.GetLevel());
            Console.WriteLine(result.GetHitpoints());
            Console.WriteLine(result.GetAttack());
            Console.WriteLine(result.GetDefense());
            Console.WriteLine(result.GetSpecialattack());
            Console.WriteLine(result.GetSpecialdefense());
            Console.WriteLine(result.GetSpeed());


            Assert.AreEqual(newMon, result);
        }