Exemple #1
0
        public void TestInheritingBaseConstructor()
        {
            List <string> choices = new List <string>();
            List <int>    answer  = new List <int>();

            choices.Add("kevin");
            choices.Add("moe");
            choices.Add("daryn");
            answer.Add(1);

            Question mult = new Multiple("What is my name?", choices, answer);



            Assert.AreEqual("What is my name?\n" + "kevin\n" + "moe\n" + "daryn\n", mult.ToString());
            Assert.AreEqual(true, mult.CheckAnswer(answer));
        }