コード例 #1
0
		public void ShouldMatchRootElement()
		{
			XmlReader reader = GetReader("<root/>");
			RootElementMatch match = new RootElementMatch("root", MatchMode.StartElement);

			reader.MoveToContent();

			Assert.IsTrue(match.Matches(reader, null));
		}
コード例 #2
0
        public void ShouldMatchRootElement()
        {
            XmlReader        reader = GetReader("<root/>");
            RootElementMatch match  = new RootElementMatch("root", MatchMode.StartElement);

            reader.MoveToContent();

            Assert.IsTrue(match.Matches(reader, null));
        }