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!"); }
public void Check_ShouldThrowExceptionIfNullStyleNodeIsGiven() { var styleSheetChecker = new StyleSheetChecker(); Assert.Throws <ArgumentNullException>(() => styleSheetChecker.Check(new FormStatement("SampleForm"), null)); }
public void Check_ShouldThrowExceptionIfNullStructureNodeIsGiven() { var styleSheetChecker = new StyleSheetChecker(); Assert.Throws <ArgumentNullException>(() => styleSheetChecker.Check(null, new StyleSheet("SampleSheet"))); }