Пример #1
0
 private void NewRandom()
 {
     instance.Answer1  = "";
     instance.Answer2  = "";
     instance.Answer3  = "";
     instance.Answer4  = "";
     instance.Solution = "";
     instance.Question = "";
     QuestionGenerator.GenerateQuestion();
 }
Пример #2
0
        public void QuestionGeneratorPrueftAntwortMoeglichkeitenAufDubletten()
        {
            //Arrange
            GUIGame gg = GUIGame.GetInstance();

            gg.Answer1 = "Antwort1";
            gg.Answer2 = "Antwort2";
            gg.Answer3 = "Antwort3";
            gg.Answer4 = "Antwort4";
            //Act
            bool istdoppelt = QuestionGenerator.CheckOnDouble("Antwort1");

            //Assert
            Assert.IsTrue(istdoppelt);
        }