示例#1
0
        public void AddQuestionLabel_ShouldShouldAddQuestionLabelValidNameIsGiven()
        {
            var typeEnv       = new QuestionVisitorTypeEnvironment();
            var questionLabel = "HeyWorld!";

            typeEnv.AddQuestionLabel(questionLabel);

            Assert.True(typeEnv.IsLableDuplicate(questionLabel));
        }
示例#2
0
        public void AddQuestionLabel_ShouldThrowExceptionIfInvalidNameIsGiven(string questionLabel)
        {
            var typeEnv = new QuestionVisitorTypeEnvironment();

            Assert.Throws <ArgumentException>(() => typeEnv.AddQuestionLabel(questionLabel));
        }