public static void XslTransformResults(XmlInput xslTransform, XmlInput xmlToTransform, XmlInput expectedResult) { Xslt xslt = new Xslt(xslTransform); XmlOutput output = xslt.Transform(xmlToTransform); XmlEquals(expectedResult, output.AsXml()); }
[Test] public void CanPerformTransform() { Xslt xslt = new Xslt(IDENTITY_TRANSFORM); string input = "<qwerty>uiop</qwerty>"; string output = new string(input.ToCharArray()); Assert.AreEqual(output, xslt.Transform(input).AsString()); Assert.AreEqual(output, xslt.Transform(input).AsString()); }
public static void AssertXslTransformResults(XmlInput xslTransform, XmlInput xmlToTransform, XmlInput expectedResult) { Xslt xslt = new Xslt(xslTransform); XmlOutput output = xslt.Transform(xmlToTransform); AssertXmlEquals(expectedResult, output.AsXml()); }
public static void XslTransformResults(XmlInput xslTransform, XmlInput xmlToTransform, XmlInput expectedResult, String message = "", Object[] args = null) { Xslt xslt = new Xslt(xslTransform); XmlOutput output = xslt.Transform(xmlToTransform); Console.WriteLine(output.AsString()); AreEqual(expectedResult, output.AsXml()); }