Example #1
0
        public static void XslTransformResults(XmlInput xslTransform, XmlInput xmlToTransform, XmlInput expectedResult)
        {
            Xslt      xslt   = new Xslt(xslTransform);
            XmlOutput output = xslt.Transform(xmlToTransform);

            XmlEquals(expectedResult, output.AsXml());
        }
Example #2
0
 [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());
 }                      
Example #3
0
 public static void AssertXslTransformResults(XmlInput xslTransform, XmlInput xmlToTransform, XmlInput expectedResult)
 {
     Xslt xslt = new Xslt(xslTransform);
     XmlOutput output = xslt.Transform(xmlToTransform);
     AssertXmlEquals(expectedResult, output.AsXml());
 }
Example #4
0
 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());
 }