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(); }
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); }