コード例 #1
0
ファイル: SaxConf.cs プロジェクト: mzkabbani/cSharpProjects
 public ConformanceReportHandler(XmlTextWriter writer, TestSuite parentTestSuite)
 {
     this.seenEvent = false;
       this.inProlog = true;
       this.writer = writer;
       this.notations = new SortedList();
       this.entities = new SortedList();
       this.parentTestSuite = parentTestSuite;
 }
コード例 #2
0
ファイル: XmlConf.cs プロジェクト: mzkabbani/cSharpProjects
 static void Main(string[] args)
 {
     string inFile, outFile, testPattern, assemblyName, readerName, saxGenerate, saxExpected;
       InputSource<FileStream> input = null;
       FileStream output = null;
       try {
     ParseArgs(args, out inFile, out outFile, out testPattern, out assemblyName, out readerName, out saxGenerate, out saxExpected);
     // Create the input source for the XMLTest listing
     input = new InputSource<FileStream>(new FileStream(inFile, FileMode.Open, FileAccess.Read));
     input.SystemId = input.Source.Name;
     // Create the output
     output = new FileStream(outFile, FileMode.Create);
     // Create the XmlReader
     IXmlReader reader = LoadParser(assemblyName, readerName);
     // Create and run the test suite
     TestSuite ts = new TestSuite(input, output, testPattern, reader, saxGenerate, saxExpected, true);
     // Close the streams
       }
       catch (Exception e) {
     Console.Write(e.Message);
       }
       finally {
     if (input != null)
       input.Source.Close();
     if (output != null)
       output.Close();
     Console.WriteLine("\n\nProcess complete, press enter");
     Console.Read();
       }
 }