mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-21 07:39:30 -10:00
43 lines
817 B
C#
43 lines
817 B
C#
//
|
|
// System.Xml.Serialization.XmlSerializer.cs
|
|
//
|
|
// Author:
|
|
// Atsushi Enomoto <[email protected]>
|
|
//
|
|
// (C) 2002 Atsushi Enomoto
|
|
//
|
|
|
|
using System;
|
|
using System.Xml;
|
|
using System.Xml.Xsl;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.System.Xml.Xsl
|
|
{
|
|
[TestFixture]
|
|
public class XslTransformTests : Assertion
|
|
{
|
|
XmlDocument doc;
|
|
XslTransform xslt;
|
|
XmlDocument result;
|
|
|
|
[SetUp]
|
|
public void GetReady()
|
|
{
|
|
doc = new XmlDocument ();
|
|
xslt = new XslTransform ();
|
|
result = new XmlDocument ();
|
|
}
|
|
|
|
[Test]
|
|
public void TestBasicTransform ()
|
|
{
|
|
doc.LoadXml ("<root/>");
|
|
xslt.Load ("XmlFiles/xsl/empty.xsl");
|
|
xslt.Transform ("XmlFiles/xsl/empty.xsl", "XmlFiles/xsl/result.xml");
|
|
result.Load ("XmlFiles/xsl/result.xml");
|
|
AssertEquals ("count", 1, result.ChildNodes.Count);
|
|
}
|
|
}
|
|
}
|