Bladeren bron

2004-03-31 Atsushi Enomoto <[email protected]>

	* XPathNavigatorTests.cs : Added PropertiesOnNamespace().

svn path=/trunk/mcs/; revision=24839
Atsushi Eno 22 jaren geleden
bovenliggende
commit
0c7bf47bb5

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

@@ -1,3 +1,7 @@
+2004-03-31  Atsushi Enomoto <[email protected]>
+
+	* XPathNavigatorTests.cs : Added PropertiesOnNamespace().
+
 2004-03-24  Atsushi Enomoto <[email protected]>
 
 	* SelectNodesTests.cs : Added test for 1) not selecting previously-

+ 8 - 0
mcs/class/System.XML/Test/System.Xml.XPath/XPathNavigatorTests.cs

@@ -86,6 +86,14 @@ namespace MonoTests.System.Xml
 			Assert (!navigator.IsEmptyElement);
 		}
 
+		[Test]
+		public void PropertiesOnNamespace ()
+		{
+			document.LoadXml ("<root xmlns='urn:foo' />");
+			navigator = document.DocumentElement.Attributes [0].CreateNavigator ();
+			AssertEquals (XPathNodeType.Namespace, navigator.NodeType);
+		}
+
 		[Test]
 		public void Navigation ()
 		{