26 references to PreElement
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
FormActionTagHelperTest.cs (2)
85
Assert.False(output.
PreElement
.IsModified);
159
Assert.False(output.
PreElement
.IsModified);
FormTagHelperTest.cs (7)
229
Assert.Empty(output.
PreElement
.GetContent());
287
Assert.Empty(output.
PreElement
.GetContent());
550
Assert.Empty(output.
PreElement
.GetContent());
674
Assert.Empty(output.
PreElement
.GetContent());
731
Assert.Empty(output.
PreElement
.GetContent());
789
Assert.Empty(output.
PreElement
.GetContent());
843
Assert.Empty(output.
PreElement
.GetContent());
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperOutput.cs (1)
203
/// Sets <see cref="TagName"/> to <c>null</c>, and clears <see cref="
PreElement
"/>, <see cref="PreContent"/>,
Microsoft.AspNetCore.Razor.Test (15)
TagHelpers\TagHelperOutputTest.cs (15)
37
output.
PreElement
.SetContent("something");
58
Assert.False(output.
PreElement
.IsModified);
210
tagHelperOutput.
PreElement
.SetContent("Hello World");
213
Assert.NotNull(tagHelperOutput.
PreElement
);
220
tagHelperOutput.
PreElement
.GetContent(new HtmlTestEncoder()));
231
Assert.NotNull(tagHelperOutput.
PreElement
);
272
Assert.NotNull(tagHelperOutput.
PreElement
);
290
Assert.NotNull(tagHelperOutput.
PreElement
);
308
Assert.NotNull(tagHelperOutput.
PreElement
);
332
Assert.NotNull(tagHelperOutput.
PreElement
);
333
Assert.Empty(tagHelperOutput.
PreElement
.GetContent(new HtmlTestEncoder()));
364
Assert.NotNull(tagHelperOutput.
PreElement
);
365
Assert.Empty(tagHelperOutput.
PreElement
.GetContent(new HtmlTestEncoder()));
1080
Assert.Equal(string.Empty, output.
PreElement
.GetContent());
1111
output.
PreElement
.AppendHtml(preElement);
TagHelpersWebSite (1)
TagHelpers\SurroundTagHelper.cs (1)
26
output.
PreElement
.AppendHtml($"<{surroundingTagName}>");