Пример #1
0
        public void CreateQuestion_Invoked_ReturnsIntegerQuestion()
        {
            // Arrange
            var definitionType = new IntegerQuestionDefinition();

            // Act
            var question = definitionType.CreateQuestion();

            // Assert
            Assert.IsInstanceOf <IntegerQuestion>(question);
        }
Пример #2
0
        public void CreateQuestion_Invoked_SetsQuestionDefinitionId()
        {
            // Arrange
            _questionDefinition.Id = QuestionDefinitionId.ChildAge;

            // Act
            var question = _questionDefinition.CreateQuestion();

            // Assert
            Assert.AreEqual(QuestionDefinitionId.ChildAge, question.QuestionDefinitionId);
        }