comparison API/Exporters/XmlSaveTest.cs @ 171:14d0450f295d

* Fix file path in test case to work on Linux * Switch to using XmlUnit in binary form (because license allows it)
author IBBoard <dev@ibboard.co.uk>
date Tue, 13 Sep 2011 20:49:06 +0100
parents e29650db551f
children c026c02583ca
comparison
equal deleted inserted replaced
170:3a626ea2604a 171:14d0450f295d
17 [TestFixture()] 17 [TestFixture()]
18 public class XmlSaveTest 18 public class XmlSaveTest
19 { 19 {
20 Army mockArmy; 20 Army mockArmy;
21 string outputFile = "test_output.xml"; 21 string outputFile = "test_output.xml";
22 string goldFile = "testdata\\xml_output.xml"; 22 string goldFile = "testdata/xml_output.xml";
23 23
24 string xslt = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"><xsl:output method=\"xml\" indent=\"no\" omit-xml-declaration=\"yes\"/><xsl:template match=\"/\"><testTopLevel><armyName><xsl:value-of select=\"army/name\"/></armyName></testTopLevel></xsl:template></xsl:stylesheet>"; 24 string xslt = "<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"><xsl:output method=\"xml\" indent=\"no\" omit-xml-declaration=\"yes\"/><xsl:template match=\"/\"><testTopLevel><armyName><xsl:value-of select=\"army/name\"/></armyName></testTopLevel></xsl:template></xsl:stylesheet>";
25 string goldOutput = "<testTopLevel><armyName>Mock Army</armyName></testTopLevel>"; 25 string goldOutput = "<testTopLevel><armyName>Mock Army</armyName></testTopLevel>";
26 [TestFixtureSetUp()] 26 [TestFixtureSetUp()]
27 public void XmlTestSetup() 27 public void XmlTestSetup()