public void should_return_Question_With_Dead_End()
        {
            //Arrange
            QuestionWithAnswers questionWithAnswers =

                new QuestionWithAnswers()
            {
                Question = new Question(),
                Labels   = new List <string>()
                {
                    "DeadEndJump"
                }
            };

            //Act
            var resultQuestionWithDeadEnd = QuestionTransformer.AsQuestionWithDeadEnd(questionWithAnswers);

            //Assert
            Assert.That(resultQuestionWithDeadEnd.Labels.First(), Is.EqualTo("DeadEndJump"));
        }
        public void should_return_Question_With_Dead_End()
        {
            //Arrange
            QuestionWithAnswers questionWithAnswers =

                new QuestionWithAnswers()
            {
                Question = new Question(),
                Labels   = new List <string>()
                {
                    "DeadEndJump"
                }
            };

            var json = JsonConvert.SerializeObject(questionWithAnswers);

            //Act
            var result = QuestionTransformer.AsQuestionWithDeadEnd(json);
            var resultQuestionWithDeadEnd = JsonConvert.DeserializeObject <QuestionWithDeadEnd>(result);

            //Assert
            Assert.IsInstanceOf <QuestionWithDeadEnd>(resultQuestionWithDeadEnd);
        }