コード例 #1
0
        public void AddQuestionName_ShouldShouldAddQuestionNameValidNameIsGiven()
        {
            var typeEnv      = new QuestionVisitorTypeEnvironment();
            var questionName = "HeyWorld!";

            typeEnv.AddQuestionIdentifier(questionName);

            Assert.True(typeEnv.IsIdentifierDuplicate(questionName));
        }
コード例 #2
0
        public void IsNameDuplicate_ShouldThrowExceptionIfInvalidNameIsGiven(string questionLabel)
        {
            var typeEnv = new QuestionVisitorTypeEnvironment();

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