@@ -118,21 +118,23 @@ public void ParsesMagicCallOuts() => Block!.CallOuts
118
118
119
119
[ Fact ]
120
120
public void RendersExpectedHtml ( ) =>
121
- Html . ReplaceLineEndings ( ) . Should ( ) . Contain ( """
122
- <div class="highlight-csharp notranslate">
123
- <div class="highlight">
124
- <pre><code class="language-csharp">var x = 1;<span style="display: inline-block; width: 1ch"></span><span class="code-callout" data-index="1"></span>
125
- var y = x - 2;
126
- var z = y - 2;<span style="display: inline-block; width: 1ch"></span><span class="code-callout" data-index="2"></span>
127
- </code></pre>
128
- </div>
129
- </div>
130
- <p><strong>OUTPUT:</strong></p>
131
- <ol class="code-callouts">
132
- <li>Marking the first callout</li>
133
- <li>Marking the second callout</li>
134
- </ol>
135
- """ . ReplaceLineEndings ( ) ) ;
121
+ Html . ShouldBeHtml (
122
+ """
123
+ <div class="highlight-csharp notranslate">
124
+ <div class="highlight">
125
+ <pre><code class="language-csharp">var x = 1;<span style="display: inline-block; width: 1ch"></span><span class="code-callout" data-index="1"></span>
126
+ var y = x - 2;
127
+ var z = y - 2;<span style="display: inline-block; width: 1ch"></span><span class="code-callout" data-index="2"></span>
128
+ </code></pre>
129
+ </div>
130
+ </div>
131
+ <p><strong>OUTPUT:</strong></p>
132
+ <ol class="code-callouts">
133
+ <li>Marking the first callout</li>
134
+ <li>Marking the second callout</li>
135
+ </ol>
136
+ """
137
+ ) ;
136
138
137
139
138
140
[ Fact ]
@@ -367,12 +369,14 @@ public void ParsesCallouts() => Block!.CallOuts
367
369
368
370
[ Fact ]
369
371
public void RenderedHtmlContainsCallouts ( ) =>
370
- Html . ReplaceLineEndings ( ) . Should ( ) . Contain ( """
371
- <ol class="code-callouts">
372
- <li>First callout</li>
373
- <li>Second callout</li>
374
- </ol>
375
- """ . ReplaceLineEndings ( ) ) ;
372
+ Html . ShouldContainHtml (
373
+ """
374
+ <ol class="code-callouts">
375
+ <li>First callout</li>
376
+ <li>Second callout</li>
377
+ </ol>
378
+ """
379
+ ) ;
376
380
}
377
381
378
382
public class CodeBlockWithMultipleCommentTypesThenList ( ITestOutputHelper output ) : CodeBlockCallOutTests ( output , "csharp" ,
@@ -426,10 +430,15 @@ public void ParsesCallouts() => Block!.CallOuts
426
430
427
431
[ Fact ]
428
432
public void RendersIntermediateParagraph ( ) =>
429
- Html . ReplaceLineEndings ( ) . Should ( ) . Contain ( """
430
- <p><strong>This is an intermediate paragraph</strong></p>
431
- <ol class="code-callouts">
432
- """ . ReplaceLineEndings ( ) ) ;
433
+ Html . ShouldContainHtml (
434
+ """
435
+ <p><strong>This is an intermediate paragraph</strong></p>
436
+ <ol class="code-callouts">
437
+ <li>First callout</li>
438
+ <li>Second callout</li>
439
+ </ol>
440
+ """
441
+ ) ;
433
442
}
434
443
435
444
public class CodeBlockWithCommentBlocksTwoParagraphsThenList ( ITestOutputHelper output ) : CodeBlockCallOutTests ( output , "csharp" ,
0 commit comments