public void GetAnswerStringValue_ShouldReturnCorrectValue_ForElements(EElementType type, string value) { // Arrange var questionId = "test-questionID"; var formAnswers = new FormAnswers { Pages = new List <PageAnswers> { new PageAnswers { Answers = new List <Answers> { new Answers { QuestionId = questionId, Response = value } } } } }; var element = new ElementBuilder() .WithType(type) .WithQuestionId(questionId) .Build(); // Act var result = _elementMapper.GetAnswerStringValue(element, formAnswers); // Assert Assert.Equal(value, result); }