Skip to content

Commit b795a1c

Browse files
committed
Update InnerVerifier_Xml.cs
1 parent aa0f2e5 commit b795a1c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Verify/Verifier/InnerVerifier_Xml.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ Task<VerifyResult> VerifyXml(XContainer? target)
5858
return VerifyInner(target, null, emptyTargets, true, false);
5959
}
6060

61+
ScrubXml(target);
62+
63+
return VerifyString(target.ToString(), "xml");
64+
}
65+
66+
void ScrubXml(XContainer target)
67+
{
6168
var serialization = settings.serialization;
6269
var elements = target
6370
.Descendants()
@@ -94,8 +101,6 @@ Task<VerifyResult> VerifyXml(XContainer? target)
94101
continue;
95102
}
96103
}
97-
98-
return VerifyString(target.ToString(), "xml");
99104
}
100105

101106
string ConvertValue(string value)

0 commit comments

Comments
 (0)