public void should_return_Answer_Title_Uppercase() { //Arrange List <Answer> answers = new List <Answer>() { new Answer() { Title = "title", SymptomDiscriminator = "SymptomDiscriminatorCode" } }; //Act var resultAnswers = QuestionTransformer.AsAnswers(answers); //Assert Assert.That(resultAnswers.ToList()[0].Title, Is.EqualTo("Title")); }
public void should_return_Answer_Title_Uppercase() { //Arrange List <Answer> answers = new List <Answer>() { new Answer() { Title = "title", SymptomDiscriminator = "SymptomDiscriminatorCode" } }; var json = JsonConvert.SerializeObject(answers); //Act var result = QuestionTransformer.AsAnswers(json); var resultAnswers = JsonConvert.DeserializeObject <List <Answer> >(result); //Assert Assert.That(resultAnswers[0].Title, Is.EqualTo("Title")); }