public void Test2() { EmptyXPathNodeIterator ni = EmptyXPathNodeIterator.Instance; Assert.IsTrue(ni.MoveNext() == false); Assert.IsTrue(ni.Count == 0); Assert.IsTrue(ni.Current == null); Assert.IsTrue(ni.CurrentPosition == 0); }
public void Test1() { EmptyXPathNodeIterator ni = EmptyXPathNodeIterator.Instance; while (ni.MoveNext()) { Assert.Fail("EmptyXPathNodeIterator must be empty"); } }