예제 #1
0
        public void CheckAnswer_Fail_Return()
        {
            //Arrange
            var openAnswerQuestion = new OpenAnswerQuestion("What is the oldest public school in England?", "Eton");

            //Act
            var answer = openAnswerQuestion.IsCorrectAnswer("Harrow");

            //Assert
            Assert.False(answer);
        }
예제 #2
0
        public void CheckAnswer_Return(string textAnswer)
        {
            //Arrange
            var openAnswerQuestion = new OpenAnswerQuestion("What is the oldest public school in England?", "Eton");

            //Act
            var answer = openAnswerQuestion.IsCorrectAnswer(textAnswer);


            //Assert
            Assert.True(answer);
        }