using System.Xml.Linq;
using System.Xml.XPath;
using NUnit.Framework;
+using System.Collections.Generic;
namespace MonoTests.System.Xml
{
att.Cast<XAttribute> ().FirstOrDefault ();
}
+ [Test] // bug #5902
+ public void EvaluateNodeSetAsEnumerableOfObject ()
+ {
+ var root = XDocument.Parse("<config><item name=\"A\" /></config>");
+ Assert.IsTrue (root.XPathSelectElements ("config/*").First ().XPathEvaluate (".") is IEnumerable<object>);
+ }
+
[Test] // bug #2146
public void RemoveDoesSnapshotCopy ()
{