static void Main() { //GUIHandler.GetInstance(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new mfrm_VocTrainerForm()); GUIGame game = GUIGame.GetInstance(); Console.ReadLine(); }
public void GUIGameTestetObAntwortRichtigIst() { //Arrange GUIGame g = GUIGame.GetInstance(); g.Solution = "korrekt"; //Act & Assert Assert.IsTrue(GUIGame.IsAnswerCorrect("korrekt")); Assert.IsFalse(GUIGame.IsAnswerCorrect("falsch")); }
public void SetAnswersAndVocable() { var instance = GUIGame.GetInstance(); vgui_VocGui.lbl_answer1.Text = instance.Answer1; vgui_VocGui.lbl_answer2.Text = instance.Answer2; vgui_VocGui.lbl_answer3.Text = instance.Answer3; vgui_VocGui.lbl_answer4.Text = instance.Answer4; vgui_VocGui.vocable_label.Text = instance.Question; }
public void GUIGameErstelltNeueAntworten() { //Arrange GUIGame g = GUIGame.GetInstance(); g.Answer1 = "Anwort1"; //Act GUIGame.Next(); //Assert Assert.IsFalse(g.Answer1.Equals("Antwort1")); }
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); }