Exemplo n.º 1
0
        public void AddQuestionName_ShouldShouldAddQuestionNameValidNameIsGiven()
        {
            var typeEnv      = new QuestionVisitorTypeEnvironment();
            var questionName = "HeyWorld!";

            typeEnv.AddQuestionIdentifier(questionName);

            Assert.True(typeEnv.IsIdentifierDuplicate(questionName));
        }
Exemplo n.º 2
0
        public void AddQuestionLabel_ShouldShouldAddQuestionLabelValidNameIsGiven()
        {
            var typeEnv       = new QuestionVisitorTypeEnvironment();
            var questionLabel = "HeyWorld!";

            typeEnv.AddQuestionLabel(questionLabel);

            Assert.True(typeEnv.IsLableDuplicate(questionLabel));
        }
Exemplo n.º 3
0
        public void IsLableDuplicate_ShouldThrowExceptionIfInvalidNameIsGiven(string questionLabel)
        {
            var typeEnv = new QuestionVisitorTypeEnvironment();

            Assert.Throws <ArgumentException>(() => typeEnv.IsLableDuplicate(questionLabel));
        }
Exemplo n.º 4
0
        public void AddQuestionName_ShouldThrowExceptionIfInvalidNameIsGiven(string questionName)
        {
            var typeEnv = new QuestionVisitorTypeEnvironment();

            Assert.Throws <ArgumentException>(() => typeEnv.AddQuestionIdentifier(questionName));
        }