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