Beispiel #1
0
        public void AnswerDigitRandomlyGenerated()
        {
            AnswerDigit answerDigit = new AnswerDigit();

            answerDigit.GenerateRamdomNumber();

            Assert.That(answerDigit.Number > 0 && answerDigit.Number < 10, "Random answer number not between acceptable ranges.");
        }
Beispiel #2
0
        public void AnswerDigitMatches()
        {
            AnswerDigit answerDigit = new AnswerDigit(5);

            Assert.That(answerDigit.Matches(5), "Equality check does not identify matches.");
        }
Beispiel #3
0
        public void AnswerDigitDoesNotMatch()
        {
            AnswerDigit answerDigit = new AnswerDigit(5);

            Assert.IsFalse(answerDigit.Matches(1), "Equality check does not indentify non-matches.");
        }