public void ShouldMatchRootElement() { XmlReader reader = GetReader("<root/>"); RootElementMatch match = new RootElementMatch("root", MatchMode.StartElement); reader.MoveToContent(); Assert.IsTrue(match.Matches(reader, null)); }
public void ShouldMatchRootElement() { XmlReader reader = GetReader("<root/>"); RootElementMatch match = new RootElementMatch("root", MatchMode.StartElement); reader.MoveToContent(); Assert.IsTrue(match.Matches(reader, null)); }