Verifies Xml:
- Scrubbing respected.
- Pretty prints
[Fact]
public Task VerifyFilePath() =>
VerifyFile("sample.txt");
Give the following Xml:
<body><node>text</node></body>
This code:
[Fact]
public Task Xml() =>
VerifyXml(xml);
Will produce
<body>
<node>text</node>
</body>
This code:
[Fact]
public Task XmlIgnoreMember() =>
VerifyXml(xml)
.IgnoreMember("node");
Will produce
<body />
This code:
[Fact]
public Task XmlScrubMember() =>
VerifyXml(xml)
.ScrubMember("node");
Will produce
<body>
<node>Scrubbed</node>
</body>