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."); }
private void StartNewGame() { answerCount = 0; btnSubmit.Content = "Guess"; correctAnswer = new Answer(4); correctAnswer.GenerateRandomAnswer(); BlankInputs(); BlankDisplay(); txtGuessOne.Focus(); }