@@ -27,6 +27,37 @@ public Task NoDeclaration() =>
2727 </body>
2828 """ ) ;
2929
30+ [ Fact ]
31+ public Task Comment ( ) =>
32+ VerifyXml (
33+ """
34+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
35+ <person><!-- name is John Doe --></person>
36+ """ ) ;
37+
38+ [ Fact ]
39+ public Task Comment_WithScrub ( ) =>
40+ VerifyXml (
41+ """
42+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
43+ <person><!-- value --></person>
44+ """ ) ;
45+ [ Fact ]
46+ public Task Comment_Mix ( ) =>
47+ VerifyXml (
48+ """
49+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
50+ <person><!-- name is John Doe -->value</person>
51+ """ ) ;
52+ [ Fact ]
53+ public Task Comment_Mix_WithScrub ( ) =>
54+ VerifyXml (
55+ """
56+ <?xml version="1.0" encoding="utf-8" standalone="yes"?>
57+ <person><!-- value -->value</person>
58+ """ )
59+ . AddScrubber ( _ => _ . Replace ( "value" , "replaced" ) ) ;
60+
3061 [ Fact ]
3162 public Task CData ( ) =>
3263 VerifyXml (
@@ -40,7 +71,7 @@ public Task CData_WithScrub() =>
4071 VerifyXml (
4172 """
4273 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
43- <person><![CDATA[value]]></person>
74+ <person><![CDATA[value]]></person>
4475 """ )
4576 . AddScrubber ( _ => _ . Replace ( "value" , "replaced" ) ) ;
4677
@@ -49,15 +80,15 @@ public Task CDataMix() =>
4980 VerifyXml (
5081 """
5182 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
52- <person><![CDATA[name is John Doe]]>value</person>
83+ <person><![CDATA[name is John Doe]]>value</person>
5384 """ ) ;
5485
5586 [ Fact ]
5687 public Task CDataMix_WithScrub ( ) =>
5788 VerifyXml (
5889 """
5990 <?xml version="1.0" encoding="utf-8" standalone="yes"?>
60- <person><![CDATA[value]]>value</person>
91+ <person><![CDATA[value]]>value</person>
6192 """ )
6293 . AddScrubber ( _ => _ . Replace ( "value" , "replaced" ) ) ;
6394
0 commit comments