Ejemplo n.º 1
0
        /// <summary>
        /// Test körning av objektet pet
        /// </summary>
        public void TestPet()
        {
            Pet pet = new Pet();

            Console.WriteLine("Welcome! Please fill in your pets information below:");
            Console.WriteLine("What's the name of your pet?");
            pet.SetName(Console.ReadLine());
            Console.WriteLine("What's the age of " + pet.GetName() + "?");
            pet.SetAge(int.Parse(Console.ReadLine()));
            Console.WriteLine("What's the gender of your pet (M/F)?");
            pet.SetGender(Console.ReadLine());
            pet.DisplayInfoText();
            Console.WriteLine("");
        }