public void Initialize() { XD.StartProcess = TestConfig.StartProcess; _pool = XD.Factory.CompileXD(null, new FilePath("xdefs/02.xdef")); _poolCreate = XD.Factory.CompileXD(null, new FilePath("xdefs/03.xdef")); _validFile = "xdefs/02_medium.xml"; _doc = _pool.CreateXDDocument(); _docCreate = _poolCreate.CreateXDDocument(); }
private void RunXdef(XDPool pool, string xmlFile) { var doc = pool.CreateXDDocument(); var reporter = new ArrayReporter(); using (var stream = new FileStream(xmlFile, FileMode.Open)) { var res = doc.Xparse(stream, reporter); } try { if (reporter.Errors) { throw new Exception("ValidationError"); } } catch (Exception ex) { Trace.WriteLine(reporter); Trace.WriteLine(ex); throw; } }
public void Initialize() { XD.StartProcess = TestConfig.StartProcess; _pool1 = XD.Factory.CompileXD(null, new FilePath("xdefs/01.xdef")); _pool2 = XD.Factory.CompileXD(null, new FilePath("xdefs/01.xdef"), new FilePath("xdefs/02.xdef")); }