Files
mono/mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs
T
2003-05-13 20:41:56 +00:00

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);
}
}
}