Example #1
0
        public void CheckSyntax(FormStatement structureRoot, StyleSheet styleRoot)
        {
            var typeChcker = new StyleSheetChecker();
            var report     = typeChcker.Check(structureRoot, styleRoot);

            foreach (var message in report.AllMessages)
            {
                Console.WriteLine(message);
            }

            Console.WriteLine("QLS Type check done!");
        }
Example #2
0
        public void Check_ShouldThrowExceptionIfNullStyleNodeIsGiven()
        {
            var styleSheetChecker = new StyleSheetChecker();

            Assert.Throws <ArgumentNullException>(() => styleSheetChecker.Check(new FormStatement("SampleForm"), null));
        }
Example #3
0
        public void Check_ShouldThrowExceptionIfNullStructureNodeIsGiven()
        {
            var styleSheetChecker = new StyleSheetChecker();

            Assert.Throws <ArgumentNullException>(() => styleSheetChecker.Check(null, new StyleSheet("SampleSheet")));
        }