示例#1
0
        private IReporting ReporterFactory(FileStream ReportStream)
        {
            IReporting       Reporter       = null;
            StringCollection TestAssemblies = new StringCollection();

            TestAssemblies.Add(this.TestAssembly);

            if (this.ReportFormat == "Html")
            {
                Reporter = new HtmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName);
            }
            else if (this.ReportFormat == "Xml")
            {
                Reporter = new XmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName);
            }
            return(Reporter);
        }
示例#2
0
        public void GenerateReport()
        {
            MemoryStream RawXmlStream = new MemoryStream();
            XmlReporting XmlReporter  = new XmlReporting(this.TestAssemblies, this.ProductionAssemblies, RawXmlStream, this.ProjectName);

            XmlReporter.GenerateReport();
            RawXmlStream.Position = 0;
            XPathDocument XPathReportReader = new XPathDocument(RawXmlStream);

            XmlReader XslReader = new XmlTextReader(this.GetXslStream());


            XslTransform XslTransformer = new XslTransform();

            XslTransformer.Load(XslReader);
            XslTransformer.Transform(XPathReportReader, null, this.ReportStream, null);
        }
示例#3
0
        public void GenerateReport()
        {
            MemoryStream RawXmlStream = new MemoryStream();
            XmlReporting XmlReporter = new XmlReporting(this.TestAssemblies, this.ProductionAssemblies, RawXmlStream, this.ProjectName);

            XmlReporter.GenerateReport();
            RawXmlStream.Position = 0;
            XPathDocument XPathReportReader = new XPathDocument(RawXmlStream);

            XmlReader XslReader = new XmlTextReader(this.GetXslStream());

            XslTransform XslTransformer = new XslTransform();
            XslTransformer.Load(XslReader);
            XslTransformer.Transform(XPathReportReader, null, this.ReportStream, null);
        }
示例#4
0
        private IReporting ReporterFactory(FileStream ReportStream)
        {
            IReporting Reporter = null;
            StringCollection TestAssemblies = new StringCollection();
            TestAssemblies.Add(this.TestAssembly);

            if (this.ReportFormat == "Html")
            {
                Reporter = new HtmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName);
            }
            else if (this.ReportFormat == "Xml")
            {
                Reporter = new XmlReporting(TestAssemblies, new StringCollection(), ReportStream, this.ProjectName);
            }
            return Reporter;
        }
 private IReporting ReporterFactory(FileStream ReportStream)
 {
     IReporting Reporter = null;
     if (this.Format == OutPutFormat.Html)
     {
         Reporter = new HtmlReporting(this.TestSet.FileNames, this.ProductionSet.FileNames, ReportStream, this.ProjectName);
     }
     else if (this.Format == OutPutFormat.Xml)
     {
         Reporter = new XmlReporting(this.TestSet.FileNames, this.ProductionSet.FileNames, ReportStream, this.ProjectName);
     }
     return Reporter;
 }