Skip to content

Commit

Permalink
Using built-in ResourceXmlReader to load xslt
Browse files Browse the repository at this point in the history
  • Loading branch information
smwhit committed May 12, 2010
1 parent f5b8f3c commit be4d25d
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Reporting/TestExecutionReport/TestExecutionReportGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Reflection;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Xsl;
Expand All @@ -13,10 +8,9 @@ namespace TechTalk.SpecFlow.Reporting.TestExecutionReport
public class TestExecutionReportGenerator
{
public void GenerateNUnitXmlFromGallio(string xmlTestResult)
{
Assembly asm = Assembly.GetExecutingAssembly();
Stream rsrc = asm.GetManifestResourceStream("TechTalk.SpecFlow.Reporting.TestExecutionReport.Gallio2NUnit.xslt");
XmlTextReader xmlTextReader = new XmlTextReader(rsrc);
{
XmlTextReader xmlTextReader = new ResourceXmlReader(Assembly.GetExecutingAssembly(),
"TechTalk.SpecFlow.Reporting.TestExecutionReport.Gallio2NUnit.xslt");

XDocument doc = XDocument.Load(xmlTestResult);
var tranny = new XslCompiledTransform();
Expand Down

0 comments on commit be4d25d

Please sign in to comment.