50 references to PostElement
Microsoft.AspNetCore.Mvc.TagHelpers (4)
InputTagHelper.cs (2)
262
GenerateInvariantCultureMetadata(fullName, output.
PostElement
);
361
output.
PostElement
.AppendHtml(hiddenForCheckboxTag);
LinkTagHelper.cs (1)
289
var builder = output.
PostElement
;
ScriptTagHelper.cs (1)
302
var builder = output.
PostElement
;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (29)
FormActionTagHelperTest.cs (2)
83
Assert.False(output.
PostElement
.IsModified);
157
Assert.False(output.
PostElement
.IsModified);
FormTagHelperTest.cs (3)
233
Assert.Empty(output.
PostElement
.GetContent());
291
Assert.Empty(output.
PostElement
.GetContent());
847
Assert.Empty(output.
PostElement
.GetContent());
InputTagHelperTest.cs (10)
105
Assert.NotNull(output.
PostElement
);
245
Assert.Equal(expectedPostElement, output.
PostElement
.GetContent());
452
Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.
PostElement
));
902
Assert.Equal(expectedPostElement, output.
PostElement
.GetContent());
959
Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.
PostElement
)));
1019
Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.
PostElement
));
1079
Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.
PostElement
)));
1139
Assert.Equal(expectedPostElementContent, HtmlContentUtilities.HtmlContentToString(output.
PostElement
));
1214
Assert.Equal(expectedPostElement, output.
PostElement
.GetContent());
1382
Assert.True(string.IsNullOrEmpty(HtmlContentUtilities.HtmlContentToString(output.
PostElement
)));
LinkTagHelperTest.cs (8)
319
Assert.True(output.
PostElement
.IsModified);
407
Assert.True(output.
PostElement
.IsModified);
543
Assert.True(output.
PostElement
.GetContent().Length == 0);
562
Assert.True(output.
PostElement
.GetContent().Length == 0);
885
Assert.Equal(expectedPostElement, output.
PostElement
.GetContent());
940
Assert.Equal(expectedPostElement, output.
PostElement
.GetContent());
1050
var content = HtmlContentUtilities.HtmlContentToString(output.
PostElement
, new HtmlTestEncoder());
1092
var content = HtmlContentUtilities.HtmlContentToString(output.
PostElement
, new HtmlTestEncoder());
ScriptTagHelperTest.cs (6)
295
Assert.True(output.
PostElement
.IsModified);
383
Assert.True(output.
PostElement
.IsModified);
471
Assert.True(output.
PostElement
.GetContent().Length == 0);
491
Assert.True(output.
PostElement
.GetContent().Length == 0);
864
"</script>]]\"));</script>", output.
PostElement
.GetContent());
896
"</script>]]\"));</script>", output.
PostElement
.GetContent());
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperOutput.cs (1)
204
/// <see cref="Content"/>, <see cref="PostContent"/>, and <see cref="
PostElement
"/> to suppress output.
Microsoft.AspNetCore.Razor.Test (15)
TagHelpers\TagHelperOutputTest.cs (15)
38
output.
PostElement
.SetContent("something");
59
Assert.False(output.
PostElement
.IsModified);
217
Assert.NotNull(tagHelperOutput.
PostElement
);
228
tagHelperOutput.
PostElement
.SetContent("Hello World");
235
Assert.NotNull(tagHelperOutput.
PostElement
);
238
tagHelperOutput.
PostElement
.GetContent(new HtmlTestEncoder()));
276
Assert.NotNull(tagHelperOutput.
PostElement
);
294
Assert.NotNull(tagHelperOutput.
PostElement
);
312
Assert.NotNull(tagHelperOutput.
PostElement
);
340
Assert.NotNull(tagHelperOutput.
PostElement
);
341
Assert.Empty(tagHelperOutput.
PostElement
.GetContent(new HtmlTestEncoder()));
372
Assert.NotNull(tagHelperOutput.
PostElement
);
373
Assert.Empty(tagHelperOutput.
PostElement
.GetContent(new HtmlTestEncoder()));
1084
Assert.Equal(string.Empty, output.
PostElement
.GetContent());
1131
output.
PostElement
.AppendHtml(postElement);
TagHelpersWebSite (1)
TagHelpers\SurroundTagHelper.cs (1)
27
output.
PostElement
.AppendHtml($"</{surroundingTagName}>");