Exemplo n.º 1
0
        /// <summary>
        /// Test <c>ProcessDocument(XmlDocument)</c> method.
        /// </summary>
        /// <param name="rep">Some parameter to run ReflectionEngine</param>
        private void TestProcessDocument(ReflectionEngineParameters rep)
        {
            CSharpAPIProcessor processor = new CSharpAPIProcessor(rep);

            DateTime startTime        = DateTime.Now;
            int      performanceCount = 0;

            while ((startTime + new TimeSpan(0, 0, 10)) > DateTime.Now)
            {
                XmlDocument doc = new XmlDocument();
                doc.LoadXml("<apispec/>");
                processor.ProcessDocument(doc);
                performanceCount++;
            }

            Console.WriteLine("Generator doc for assembly {0} used {1}s ( {2} times/{3} sec )",
                              rep.AssemblyFileNames, 10.0 / performanceCount, performanceCount, 10);
        }
Exemplo n.º 2
0
 public void TestProcessDocument_Null()
 {
     processor.ProcessDocument(null);
 }