Beispiel #1
0
        public void LastNumberIsPopulated()
        {
            Answer answer = new Answer(4);
            answer.GenerateRandomAnswer();

            int lastRandomNumber = answer.AnswerDigits[answer.AnswerDigits.Count - 1].Number;
            Assert.That(lastRandomNumber,Is.GreaterThan(0).And.LessThan(10), "Last answer number does not contain a number.");
        }
Beispiel #2
0
 private void StartNewGame()
 {
     answerCount = 0;
     btnSubmit.Content = "Guess";
     correctAnswer = new Answer(4);
     correctAnswer.GenerateRandomAnswer();
     BlankInputs();
     BlankDisplay();
     txtGuessOne.Focus();
 }