コード例 #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());
        }
コード例 #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());
 }                      
コード例 #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());
 }
コード例 #4
0
ファイル: AssertXml.cs プロジェクト: rjframe/XmlUnit
 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());
 }