144 references to PreContent
Microsoft.AspNetCore.Mvc.TagHelpers.Test (122)
CacheTagHelperTest.cs (30)
83
Assert.Empty(tagHelperOutput.
PreContent
.GetContent());
112
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
134
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
149
tagHelperOutput1.
PreContent
.Append("<cache>");
162
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
171
tagHelperOutput2.
PreContent
.SetContent("<cache>");
184
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
234
tagHelperOutput1.
PreContent
.Append("<cache>");
245
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
335
tagHelperOutput1.
PreContent
.SetContent("<cache>");
347
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
356
tagHelperOutput2.
PreContent
.SetContent("<cache>");
369
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
388
tagHelperOutput1.
PreContent
.SetContent("<cache>");
400
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
410
tagHelperOutput2.
PreContent
.SetContent("<cache>");
422
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
441
tagHelperOutput1.
PreContent
.SetContent("<cache>");
453
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
463
tagHelperOutput2.
PreContent
.SetContent("<cache>");
475
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
510
tagHelperOutput.
PreContent
.SetContent("<cache>");
609
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
614
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
692
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
697
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
756
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
768
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
780
Assert.Empty(tagHelperOutput3.
PreContent
.GetContent());
792
Assert.Empty(tagHelperOutput4.
PreContent
.GetContent());
DistributedCacheTagHelperTest.cs (23)
106
Assert.Empty(tagHelperOutput.
PreContent
.GetContent());
155
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
180
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
199
tagHelperOutput1.
PreContent
.Append("<cache>");
214
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
223
tagHelperOutput2.
PreContent
.SetContent("<cache>");
238
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
363
tagHelperOutput1.
PreContent
.SetContent("<cache>");
377
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
386
tagHelperOutput2.
PreContent
.SetContent("<cache>");
401
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
425
tagHelperOutput1.
PreContent
.SetContent("<distributed-cache>");
439
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
449
tagHelperOutput2.
PreContent
.SetContent("<distributed-cache>");
463
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
487
tagHelperOutput1.
PreContent
.SetContent("<distributed-cache>");
501
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
511
tagHelperOutput2.
PreContent
.SetContent("<distributed-cache>");
525
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
612
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
617
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
704
Assert.Empty(tagHelperOutput1.
PreContent
.GetContent());
709
Assert.Empty(tagHelperOutput2.
PreContent
.GetContent());
EnvironmentTagHelperTest.cs (2)
147
Assert.Empty(output.
PreContent
.GetContent());
180
Assert.Empty(output.
PreContent
.GetContent());
FormActionTagHelperTest.cs (2)
84
Assert.False(output.
PreContent
.IsModified);
158
Assert.False(output.
PreContent
.IsModified);
FormTagHelperTest.cs (13)
119
Assert.Empty(output.
PreContent
.GetContent());
173
Assert.Empty(output.
PreContent
.GetContent());
230
Assert.Empty(output.
PreContent
.GetContent());
288
Assert.Empty(output.
PreContent
.GetContent());
363
Assert.Empty(output.
PreContent
.GetContent());
427
Assert.Empty(output.
PreContent
.GetContent());
498
Assert.Empty(output.
PreContent
.GetContent());
551
Assert.Empty(output.
PreContent
.GetContent());
675
Assert.Empty(output.
PreContent
.GetContent());
732
Assert.Empty(output.
PreContent
.GetContent());
790
Assert.Empty(output.
PreContent
.GetContent());
844
Assert.Empty(output.
PreContent
.GetContent());
1001
Assert.Empty(output.
PreContent
.GetContent());
InputTagHelperTest.cs (18)
661
output.
PreContent
.SetContent(expectedPreContent);
687
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
758
Assert.Empty(output.
PreContent
.GetContent());
829
Assert.Empty(output.
PreContent
.GetContent());
1174
output.
PreContent
.AppendHtml(expectedPreContent);
1210
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
1274
output.
PreContent
.SetContent(expectedPreContent);
1316
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
1440
output.
PreContent
.SetContent(expectedPreContent);
1481
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
1540
output.
PreContent
.SetContent(expectedPreContent);
1576
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
1652
output.
PreContent
.SetContent(expectedPreContent);
1694
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
1810
Assert.Empty(output.
PreContent
.GetContent());
1879
Assert.Empty(output.
PreContent
.GetContent());
1948
Assert.Empty(output.
PreContent
.GetContent());
2042
Assert.Empty(output.
PreContent
.GetContent());
LabelTagHelperTest.cs (2)
201
output.
PreContent
.AppendHtml(expectedPreContent);
219
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
OptionTagHelperTest.cs (2)
487
output.
PreContent
.SetContent(originalPreContent);
552
output.
PreContent
.SetContent(originalPreContent);
SelectTagHelperTest.cs (8)
216
output.
PreContent
.SetContent(expectedPreContent);
241
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
306
output.
PreContent
.AppendHtml(expectedPreContent);
340
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
397
output.
PreContent
.AppendHtml(expectedPreContent);
421
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
486
output.
PreContent
.AppendHtml(expectedPreContent);
520
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
ValidationMessageTagHelperTest.cs (6)
59
output.
PreContent
.SetContent(expectedPreContent);
82
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
273
output.
PreContent
.SetContent(expectedPreContent);
285
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
430
output.
PreContent
.SetContent(expectedPreContent);
450
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
ValidationSummaryTagHelperTest.cs (16)
70
output.
PreContent
.SetContent(expectedPreContent);
87
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
238
output.
PreContent
.SetContent(expectedPreContent);
261
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
308
output.
PreContent
.SetContent(expectedPreContent);
326
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
369
output.
PreContent
.SetContent(expectedPreContent);
387
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
424
output.
PreContent
.SetContent(expectedPreContent);
459
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
483
output.
PreContent
.SetContent(expectedPreContent);
502
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
539
output.
PreContent
.SetContent(expectedPreContent);
558
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
624
output.
PreContent
.SetContent(expectedPreContent);
639
Assert.Equal(expectedPreContent, output.
PreContent
.GetContent());
Microsoft.AspNetCore.Razor (2)
TagHelpers\TagHelperOutput.cs (2)
98
/// <remarks>Value occurs in the <see cref="ITagHelper"/>'s final output after <see cref="
PreContent
"/> and
203
/// Sets <see cref="TagName"/> to <c>null</c>, and clears <see cref="PreElement"/>, <see cref="
PreContent
"/>,
Microsoft.AspNetCore.Razor.Test (17)
TagHelpers\TagHelperOutputTest.cs (17)
35
output.
PreContent
.SetContent("something");
56
Assert.False(output.
PreContent
.IsModified);
214
Assert.NotNull(tagHelperOutput.
PreContent
);
232
Assert.NotNull(tagHelperOutput.
PreContent
);
269
tagHelperOutput.
PreContent
.SetContent("Hello World");
273
Assert.NotNull(tagHelperOutput.
PreContent
);
279
tagHelperOutput.
PreContent
.GetContent(new HtmlTestEncoder()));
291
Assert.NotNull(tagHelperOutput.
PreContent
);
309
Assert.NotNull(tagHelperOutput.
PreContent
);
323
tagHelperOutput.
PreContent
.Append("Pre Content");
334
Assert.NotNull(tagHelperOutput.
PreContent
);
335
Assert.Empty(tagHelperOutput.
PreContent
.GetContent(new HtmlTestEncoder()));
356
tagHelperOutput.
PreContent
.Append("Pre Content");
366
Assert.NotNull(tagHelperOutput.
PreContent
);
367
Assert.Empty(tagHelperOutput.
PreContent
.GetContent(new HtmlTestEncoder()));
1081
Assert.Equal(string.Empty, output.
PreContent
.GetContent());
1116
output.
PreContent
.AppendHtml(preContent);
TagHelpersWebSite (3)
TagHelpers\ATagHelper.cs (1)
44
output.
PreContent
.SetContent("My ");
TagHelpers\BoldTagHelper.cs (1)
22
output.
PreContent
.AppendHtml("<b>");
TagHelpers\CustomEncoderTagHelper.cs (1)
22
output.
PreContent