195 references to TagMode
Microsoft.AspNetCore.Mvc.Razor.Test (5)
RazorPageTest.cs (5)
982
tagMode:
TagMode
.StartTagAndEndTag,
1024
tagMode:
TagMode
.StartTagAndEndTag,
1070
tagMode:
TagMode
.StartTagAndEndTag,
1113
tagMode:
TagMode
.StartTagAndEndTag,
1143
tagMode:
TagMode
.StartTagAndEndTag,
Microsoft.AspNetCore.Mvc.TagHelpers (2)
InputTagHelper.cs (1)
334
output.TagMode ==
TagMode
.SelfClosing ? TagRenderMode.SelfClosing : TagRenderMode.StartTag;
ScriptTagHelper.cs (1)
256
output.TagMode =
TagMode
.StartTagAndEndTag;
Microsoft.AspNetCore.Mvc.TagHelpers.Test (72)
FormActionTagHelperTest.cs (2)
86
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
160
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
FormTagHelperTest.cs (9)
424
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
495
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
548
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
618
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
672
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
729
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
787
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
841
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
998
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
InputTagHelperTest.cs (45)
94
TagMode =
TagMode
.SelfClosing,
142
TagMode =
TagMode
.SelfClosing,
189
TagMode =
TagMode
.SelfClosing,
233
TagMode =
TagMode
.SelfClosing,
285
TagMode =
TagMode
.SelfClosing,
330
TagMode =
TagMode
.SelfClosing,
384
TagMode =
TagMode
.SelfClosing,
440
TagMode =
TagMode
.SelfClosing,
491
TagMode =
TagMode
.SelfClosing,
547
TagMode =
TagMode
.SelfClosing,
659
TagMode =
TagMode
.StartTagOnly,
690
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
732
TagMode =
TagMode
.StartTagOnly,
761
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
803
TagMode =
TagMode
.StartTagOnly,
832
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
893
TagMode =
TagMode
.SelfClosing,
947
TagMode =
TagMode
.SelfClosing,
1007
TagMode =
TagMode
.SelfClosing,
1067
TagMode =
TagMode
.SelfClosing,
1127
TagMode =
TagMode
.SelfClosing,
1172
TagMode =
TagMode
.SelfClosing,
1215
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
1272
TagMode =
TagMode
.StartTagOnly,
1314
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
1370
TagMode =
TagMode
.SelfClosing,
1438
TagMode =
TagMode
.StartTagOnly,
1479
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
1538
TagMode =
TagMode
.StartTagOnly,
1574
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
1650
TagMode =
TagMode
.StartTagOnly,
1692
Assert.Equal(
TagMode
.StartTagOnly, output.TagMode);
1768
TagMode =
TagMode
.SelfClosing,
1808
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
1841
TagMode =
TagMode
.SelfClosing,
1877
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
1910
TagMode =
TagMode
.SelfClosing,
1946
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
2004
TagMode =
TagMode
.SelfClosing,
2040
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
2084
TagMode =
TagMode
.SelfClosing,
2146
TagMode =
TagMode
.SelfClosing,
2214
TagMode =
TagMode
.SelfClosing,
2280
TagMode =
TagMode
.SelfClosing,
2338
TagMode =
TagMode
.SelfClosing,
LabelTagHelperTest.cs (1)
224
Assert.Equal(
TagMode
.StartTagAndEndTag, output.TagMode);
LinkTagHelperTest.cs (1)
1164
TagMode =
TagMode
.SelfClosing,
OptionTagHelperTest.cs (3)
414
TagMode =
TagMode
.StartTagAndEndTag
485
TagMode =
TagMode
.StartTagAndEndTag,
550
TagMode =
TagMode
.StartTagAndEndTag,
RenderAtEndOfFormTagHelperTest.cs (1)
91
TagMode
.StartTagAndEndTag,
SelectTagHelperTest.cs (8)
214
TagMode =
TagMode
.SelfClosing,
239
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
304
TagMode =
TagMode
.SelfClosing,
338
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
395
TagMode =
TagMode
.SelfClosing,
419
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
484
TagMode =
TagMode
.SelfClosing,
518
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
TextAreaTagHelperTest.cs (2)
140
TagMode =
TagMode
.SelfClosing,
151
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
Microsoft.AspNetCore.Razor (11)
TagHelpers\TagHelperOutput.cs (11)
167
public
TagMode
TagMode { get; set; }
184
public void Reinitialize(string tagName,
TagMode
tagMode)
301
if (TagMode ==
TagMode
.SelfClosing)
309
if (isTagNameNullOrWhitespace || TagMode ==
TagMode
.StartTagAndEndTag)
318
if (!isTagNameNullOrWhitespace && TagMode ==
TagMode
.StartTagAndEndTag)
350
if (TagMode ==
TagMode
.SelfClosing)
358
if (isTagNameNullOrWhitespace || TagMode ==
TagMode
.StartTagAndEndTag)
365
if (!isTagNameNullOrWhitespace && TagMode ==
TagMode
.StartTagAndEndTag)
405
if (TagMode ==
TagMode
.SelfClosing)
413
if (isTagNameNullOrWhitespace || TagMode ==
TagMode
.StartTagAndEndTag)
422
if (!isTagNameNullOrWhitespace && TagMode ==
TagMode
.StartTagAndEndTag)
Microsoft.AspNetCore.Razor.Runtime (6)
Runtime\TagHelpers\TagHelperExecutionContext.cs (4)
26
internal TagHelperExecutionContext(string tagName,
TagMode
tagMode)
53
TagMode
tagMode,
172
/// <param name="tagMode">The <see cref="
TagMode
"/> to use.</param>
178
TagMode
tagMode,
Runtime\TagHelpers\TagHelperScopeManager.cs (2)
45
TagMode
tagMode,
121
TagMode
tagMode,
Microsoft.AspNetCore.Razor.Runtime.Test (45)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (27)
20
tagMode:
TagMode
.StartTagAndEndTag,
43
tagMode:
TagMode
.StartTagAndEndTag,
68
tagMode:
TagMode
.StartTagAndEndTag,
92
var
tagMode =
TagMode
.StartTagOnly;
110
var
updatedTagMode =
TagMode
.SelfClosing;
148
var
tagMode =
TagMode
.StartTagOnly;
190
[InlineData(
TagMode
.SelfClosing)]
191
[InlineData(
TagMode
.StartTagAndEndTag)]
192
[InlineData(
TagMode
.StartTagOnly)]
193
public void ExecutionContext_CreateTagHelperOutput_ReturnsExpectedTagMode(
TagMode
tagMode)
217
tagMode:
TagMode
.StartTagAndEndTag,
271
tagMode:
TagMode
.StartTagAndEndTag,
299
tagMode:
TagMode
.StartTagAndEndTag,
321
tagMode:
TagMode
.StartTagAndEndTag,
348
tagMode:
TagMode
.StartTagAndEndTag,
375
tagMode:
TagMode
.StartTagAndEndTag,
405
tagMode:
TagMode
.StartTagAndEndTag,
432
tagMode:
TagMode
.StartTagAndEndTag,
451
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
474
var executionContext = new TagHelperExecutionContext("input", tagMode:
TagMode
.StartTagOnly);
497
var executionContext = new TagHelperExecutionContext("input", tagMode:
TagMode
.SelfClosing);
528
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
553
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
568
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
Runtime\TagHelpers\TagHelperRunnerTest.cs (12)
16
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
92
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
112
[InlineData(
TagMode
.SelfClosing)]
113
[InlineData(
TagMode
.StartTagAndEndTag)]
114
[InlineData(
TagMode
.StartTagOnly)]
115
public async Task RunAsync_SetsTagHelperOutputTagMode(
TagMode
tagMode)
137
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
156
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
169
Assert.Equal(
TagMode
.SelfClosing, output.TagMode);
177
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
194
var executionContext = new TagHelperExecutionContext("p",
TagMode
.StartTagAndEndTag);
223
output.TagMode =
TagMode
.SelfClosing;
Runtime\TagHelpers\TagHelperScopeManagerTest.cs (6)
154
[InlineData(
TagMode
.SelfClosing)]
155
[InlineData(
TagMode
.StartTagAndEndTag)]
156
[InlineData(
TagMode
.StartTagOnly)]
157
public void Begin_SetsExecutionContexts_TagHelperOutputTagMode(
TagMode
tagMode)
233
TagMode
tagMode =
TagMode
.StartTagAndEndTag)
Microsoft.AspNetCore.Razor.Test (53)
TagHelpers\TagHelperOutputTest.cs (53)
24
var
initialTagMode =
TagMode
.StartTagOnly;
40
var
expectedTagMode =
TagMode
.SelfClosing;
414
tagMode:
TagMode
.StartTagAndEndTag,
426
tagMode:
TagMode
.StartTagAndEndTag,
438
tagMode:
TagMode
.StartTagAndEndTag,
450
tagMode:
TagMode
.StartTagAndEndTag,
466
tagMode:
TagMode
.StartTagAndEndTag,
482
tagMode:
TagMode
.StartTagAndEndTag,
497
tagMode:
TagMode
.StartTagAndEndTag,
513
tagMode:
TagMode
.StartTagAndEndTag,
529
tagMode:
TagMode
.StartTagAndEndTag,
545
tagMode:
TagMode
.StartTagAndEndTag,
557
tagMode:
TagMode
.SelfClosing,
573
tagMode:
TagMode
.SelfClosing,
588
tagMode:
TagMode
.StartTagOnly,
604
tagMode:
TagMode
.StartTagOnly,
616
tagMode:
TagMode
.StartTagAndEndTag,
628
tagMode:
TagMode
.StartTagAndEndTag,
640
tagMode:
TagMode
.StartTagAndEndTag,
652
tagMode:
TagMode
.StartTagAndEndTag,
664
tagMode:
TagMode
.SelfClosing,
676
tagMode:
TagMode
.StartTagOnly,
688
tagMode:
TagMode
.StartTagAndEndTag,
700
tagMode:
TagMode
.SelfClosing,
712
tagMode:
TagMode
.StartTagOnly,
724
tagMode:
TagMode
.StartTagAndEndTag,
736
tagMode:
TagMode
.StartTagAndEndTag,
748
tagMode:
TagMode
.SelfClosing,
760
tagMode:
TagMode
.SelfClosing,
772
tagMode:
TagMode
.SelfClosing,
784
tagMode:
TagMode
.StartTagOnly,
799
tagMode:
TagMode
.StartTagOnly,
811
tagMode:
TagMode
.StartTagOnly,
823
tagMode:
TagMode
.StartTagOnly,
835
tagMode:
TagMode
.StartTagAndEndTag,
847
tagMode:
TagMode
.StartTagAndEndTag,
859
tagMode:
TagMode
.SelfClosing,
871
tagMode:
TagMode
.SelfClosing,
883
tagMode:
TagMode
.SelfClosing,
895
tagMode:
TagMode
.StartTagOnly,
907
tagMode:
TagMode
.StartTagOnly,
919
tagMode:
TagMode
.StartTagOnly,
931
tagMode:
TagMode
.StartTagAndEndTag,
943
tagMode:
TagMode
.StartTagAndEndTag,
955
tagMode:
TagMode
.SelfClosing,
967
tagMode:
TagMode
.SelfClosing,
979
tagMode:
TagMode
.StartTagOnly,
991
tagMode:
TagMode
.StartTagOnly,
1003
tagMode:
TagMode
.StartTagAndEndTag,
1015
tagMode:
TagMode
.StartTagAndEndTag,
1093
TagMode
tagMode,
TagHelpersWebSite (1)
TagHelpers\WebsiteInformationTagHelper.cs (1)
27
output.TagMode =
TagMode
.StartTagAndEndTag;