Пример #1
0
        public void MultipleFormNodesInAST()
        {
            var analyser = new SingleFormValidator();
            var result   = analyser.Analyse(_invalidAST);

            Assert.IsFalse(result);
        }
        public void MultipleLayerValidForm()
        {
            var validator = new SingleFormValidator();

            Assert.IsTrue(validator.Analyse(_multipleLayerValidForm));
        }
        public void RootIsOnlyFormNodeInLowerLayerFalseTest()
        {
            var validator = new SingleFormValidator();

            Assert.IsFalse(validator.Analyse(_multipleFormInLowerNodeAST));
        }
        public void RootIsOnlyFormNodeTest()
        {
            var validator = new SingleFormValidator();

            Assert.IsTrue(validator.Analyse(_validAST));
        }