26 references to PreElement
Microsoft.AspNetCore.Mvc.TagHelpers.Test (9)
FormActionTagHelperTest.cs (2)
85Assert.False(output.PreElement.IsModified); 159Assert.False(output.PreElement.IsModified);
FormTagHelperTest.cs (7)
229Assert.Empty(output.PreElement.GetContent()); 287Assert.Empty(output.PreElement.GetContent()); 550Assert.Empty(output.PreElement.GetContent()); 674Assert.Empty(output.PreElement.GetContent()); 731Assert.Empty(output.PreElement.GetContent()); 789Assert.Empty(output.PreElement.GetContent()); 843Assert.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)
37output.PreElement.SetContent("something"); 58Assert.False(output.PreElement.IsModified); 210tagHelperOutput.PreElement.SetContent("Hello World"); 213Assert.NotNull(tagHelperOutput.PreElement); 220tagHelperOutput.PreElement.GetContent(new HtmlTestEncoder())); 231Assert.NotNull(tagHelperOutput.PreElement); 272Assert.NotNull(tagHelperOutput.PreElement); 290Assert.NotNull(tagHelperOutput.PreElement); 308Assert.NotNull(tagHelperOutput.PreElement); 332Assert.NotNull(tagHelperOutput.PreElement); 333Assert.Empty(tagHelperOutput.PreElement.GetContent(new HtmlTestEncoder())); 364Assert.NotNull(tagHelperOutput.PreElement); 365Assert.Empty(tagHelperOutput.PreElement.GetContent(new HtmlTestEncoder())); 1080Assert.Equal(string.Empty, output.PreElement.GetContent()); 1111output.PreElement.AppendHtml(preElement);
TagHelpersWebSite (1)
TagHelpers\SurroundTagHelper.cs (1)
26output.PreElement.AppendHtml($"<{surroundingTagName}>");