public void TestParser(string input, string output) { Assert.That(_parser.Parse(input), Is.EqualTo(output)); XmlDocument doc = new XmlDocument(); Assert.DoesNotThrow(() => doc.LoadXml(output)); }
public void TestParser(string input, string output) { Assert.That(_parser.Parse(input), Is.EqualTo(output)); #if NETCOREAPP1_1 Assert.DoesNotThrow(() => System.Xml.Linq.XDocument.Parse(output)); #else XmlDocument doc = new XmlDocument(); Assert.DoesNotThrow(() => doc.LoadXml(output)); #endif }
public void TestParser(string input, string output) { Assert.That(_parser.Parse(input), Is.EqualTo(output)); }