Exemple #1
0
        private void AssertReadConformance(XmlReader actual, XmlReader expected)
        {
            Invoking(
                () => {
                using (var verifier = new XmlReaderConformanceVerifier(expected, actual))
                {
                    while (verifier.Read())
                    {
                        if (verifier.NodeType != XmlNodeType.Element)
                        {
                            continue;
                        }
                        while (verifier.MoveToNextAttribute())
                        {
                            verifier.ReadAttributeValue();
                        }

                        verifier.MoveToContent();
                    }
                }
            }).Should().NotThrow();
        }
Exemple #2
0
 private static void AssertReadConformance(XmlReader actual, XmlReader expected)
 {
     Assert.That(
         () => {
         using (var verifier = new XmlReaderConformanceVerifier(expected, actual))
         {
             while (verifier.Read())
             {
                 if (verifier.NodeType != XmlNodeType.Element)
                 {
                     continue;
                 }
                 while (verifier.MoveToNextAttribute())
                 {
                     verifier.ReadAttributeValue();
                 }
                 verifier.MoveToContent();
             }
         }
     },
         Throws.Nothing);
 }