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); }
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); }