Jelajahi Sumber

2003-04-12 Atsushi Enomoto <[email protected]>

	* added this file as a new entry.
	  See ../ChangeLog to find former ChangeLog entries.

svn path=/trunk/mcs/; revision=13553
Atsushi Eno 23 tahun lalu
induk
melakukan
77f29f40d0

+ 4 - 0
mcs/class/System.XML/Test/System.Xml.Schema/ChangeLog

@@ -0,0 +1,4 @@
+2003-04-12  Atsushi Enomoto <[email protected]>
+
+	* added this file as a new entry.
+	  See ../ChangeLog to find former ChangeLog entries.

+ 26 - 0
mcs/class/System.XML/Test/System.Xml.Schema/XmlSchemaTests.cs

@@ -0,0 +1,26 @@
+//
+// System.Xml.XmlSchema.cs
+//
+// Author:
+//   Atsushi Enomoto <[email protected]>
+//
+// (C) 2002 Atsushi Enomoto
+//
+
+using System;
+using System.Xml;
+using System.Xml.Schema;
+using NUnit.Framework;
+
+namespace MonoTests.System.Xml
+{
+	[TestFixture]
+	public class XmlSchemaTests
+	{
+		[Test]
+		public void TestRead ()
+		{
+			XmlSchema som = XmlSchema.Read (new XmlTextReader ("XmlFiles/xsd/xml.xsd"), null);
+		}
+	}
+}

+ 4 - 0
mcs/class/System.XML/Test/System.Xml.Xsl/ChangeLog

@@ -0,0 +1,4 @@
+2003-04-12  Atsushi Enomoto <[email protected]>
+
+	* added this file as a new entry.
+	  See ../ChangeLog to find former ChangeLog entries.

+ 42 - 0
mcs/class/System.XML/Test/System.Xml.Xsl/XslTransformTests.cs

@@ -0,0 +1,42 @@
+//
+// 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
+	{
+		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");
+			Assertion.AssertEquals ("count", 1, result.ChildNodes.Count);
+		}
+	}
+}