public void getQuestion_EmptyStringTest() { String strQuestion = ""; String strAnswer = "Answer 111"; Question q = new ShortAnswerQuestion(strQuestion, strAnswer); String strResult = q.getQuestion(); Assert.AreEqual(strQuestion, strResult); }
public void getQuestion_LongStringTest() { // Arrange String strQuestion = "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"; String strAnswer = "Answer 111"; Question q = new ShortAnswerQuestion(strQuestion, strAnswer); //Act String strResult = q.getQuestion(); //Assert Assert.AreEqual(strQuestion, strResult); }
public void getQuestion_NormalTest() { // Arrange String strQuestion = "Test 111"; String strAnswer = "Answer 111"; Question q = new ShortAnswerQuestion(strQuestion, strAnswer); //Act String strResult = q.getQuestion(); //Assert Assert.AreEqual(strQuestion, strResult); }