454 references to TagHelperAttribute
Microsoft.AspNetCore.Mvc.TagHelpers.Test (234)
AttributeMatcherTest.cs (9)
24
new
TagHelperAttribute
("first-attr", "value"),
25
new
TagHelperAttribute
("not-in-any-mode", "value")
49
new
TagHelperAttribute
("first-attr", "value"),
50
new
TagHelperAttribute
("second-attr", "value"),
51
new
TagHelperAttribute
("not-in-any-mode", "value")
77
new
TagHelperAttribute
("first-attr", "value"),
78
new
TagHelperAttribute
("second-attr", "value"),
79
new
TagHelperAttribute
("third-attr", "value"),
80
new
TagHelperAttribute
("not-in-any-mode", "value")
FormTagHelperTest.cs (3)
383
var expectedAttribute = new
TagHelperAttribute
("method", method.ToString().ToLowerInvariant());
443
var expectedAttribute = new
TagHelperAttribute
("asp-ROUTEE-NotRoute", "something");
1000
Assert.Equal(new
TagHelperAttribute
("aCTiON", "my-action"), attribute);
LinkTagHelperTest.cs (51)
148
new
TagHelperAttribute
("rel", new HtmlString("stylesheet"))
161
new
TagHelperAttribute
("href", "test.css")
180
new
TagHelperAttribute
("asp-fallback-href", "test.css"),
181
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
182
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
183
new
TagHelperAttribute
("asp-fallback-test-value", "hidden")
196
new
TagHelperAttribute
("asp-fallback-href-include", "*.css"),
197
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
198
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
199
new
TagHelperAttribute
("asp-fallback-test-value", "hidden")
213
new
TagHelperAttribute
("asp-fallback-href", "test.css"),
214
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
215
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
216
new
TagHelperAttribute
("asp-fallback-test-value", "hidden"),
217
new
TagHelperAttribute
("asp-append-version", "true")
231
new
TagHelperAttribute
("asp-fallback-href-include", "*.css"),
232
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
233
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
234
new
TagHelperAttribute
("asp-fallback-test-value", "hidden"),
235
new
TagHelperAttribute
("asp-append-version", "true")
250
new
TagHelperAttribute
("asp-fallback-href", "test.css"),
251
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
252
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
253
new
TagHelperAttribute
("asp-fallback-test-value", "hidden"),
254
new
TagHelperAttribute
("asp-append-version", "true"),
255
new
TagHelperAttribute
("asp-suppress-fallback-integrity", "true")
271
new
TagHelperAttribute
("asp-fallback-href", "test.css"),
272
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
273
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
274
new
TagHelperAttribute
("asp-fallback-test-value", "hidden"),
275
new
TagHelperAttribute
("asp-append-version", "true"),
276
new
TagHelperAttribute
("asp-suppress-fallback-integrity", "false")
331
new
TagHelperAttribute
("asp-href-include", "*.css")
341
new
TagHelperAttribute
("asp-href-include", "*.css"),
342
new
TagHelperAttribute
("asp-href-exclude", "*.min.css")
353
new
TagHelperAttribute
("asp-href-include", "*.css"),
354
new
TagHelperAttribute
("asp-append-version", "true")
365
new
TagHelperAttribute
("asp-href-include", "*.css"),
366
new
TagHelperAttribute
("asp-href-exclude", "*.min.css"),
367
new
TagHelperAttribute
("asp-append-version", "true")
459
new
TagHelperAttribute
("asp-href-exclude", "*.min.css")
472
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
473
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
474
new
TagHelperAttribute
("asp-fallback-test-value", "hidden")
487
new
TagHelperAttribute
("asp-fallback-href", "test.css"),
488
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
491
new
TagHelperAttribute
("asp-fallback-test-value", "hidden")
505
new
TagHelperAttribute
("asp-fallback-href-exclude", "**/*.min.css"),
506
new
TagHelperAttribute
("asp-fallback-test-class", "hidden"),
507
new
TagHelperAttribute
("asp-fallback-test-property", "visibility"),
508
new
TagHelperAttribute
("asp-fallback-test-value", "hidden")
ScriptTagHelperTest.cs (87)
87
new
TagHelperAttribute
("data-extra", "something"),
88
new
TagHelperAttribute
("src", "/blank.js"),
89
new
TagHelperAttribute
("asp-fallback-src", "http://www.example.com/blank.js"),
90
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
97
new
TagHelperAttribute
("data-extra", new HtmlString("something"))
107
expectedAttributes.Add(new
TagHelperAttribute
("src", "/blank.js"));
125
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
126
new
TagHelperAttribute
("asp-fallback-test", "isavailable()")
137
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
138
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
139
new
TagHelperAttribute
("asp-suppress-fallback-integrity", "false")
151
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
152
new
TagHelperAttribute
("asp-fallback-test", "isavailable()")
163
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
164
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
165
new
TagHelperAttribute
("asp-fallback-test", "isavailable()")
177
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
178
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
179
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
180
new
TagHelperAttribute
("asp-suppress-fallback-integrity", "false")
193
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
194
new
TagHelperAttribute
("asp-fallback-src-exclude", "*.min.js"),
195
new
TagHelperAttribute
("asp-fallback-test", "isavailable()")
208
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
209
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
210
new
TagHelperAttribute
("asp-append-version", "true")
222
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
223
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
224
new
TagHelperAttribute
("asp-append-version", "true")
236
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
237
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
238
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
239
new
TagHelperAttribute
("asp-append-version", "true")
252
new
TagHelperAttribute
("asp-fallback-src-include", "*.js"),
253
new
TagHelperAttribute
("asp-fallback-src-exclude", "*.min.js"),
254
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
255
new
TagHelperAttribute
("asp-append-version", "true")
307
new
TagHelperAttribute
("asp-src-include", "*.js")
317
new
TagHelperAttribute
("asp-src-include", "*.js"),
318
new
TagHelperAttribute
("asp-src-exclude", "*.min.js")
329
new
TagHelperAttribute
("asp-src-include", "*.js"),
330
new
TagHelperAttribute
("asp-append-version", "true")
341
new
TagHelperAttribute
("asp-src-include", "*.js"),
342
new
TagHelperAttribute
("asp-src-exclude", "*.min.js"),
343
new
TagHelperAttribute
("asp-append-version", "true")
397
new
TagHelperAttribute
("asp-src-exclude", "*.min.js")
410
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
421
new
TagHelperAttribute
("asp-fallback-src", "test.js"),
436
new
TagHelperAttribute
("asp-fallback-src-exclude", "**/*.min.js"),
437
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
501
new
TagHelperAttribute
("data-extra", "something"),
502
new
TagHelperAttribute
("src", "/blank.js"),
503
new
TagHelperAttribute
("data-more", "else"),
504
new
TagHelperAttribute
("asp-fallback-src", "http://www.example.com/blank.js"),
505
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
511
new
TagHelperAttribute
("data-extra", "something"),
512
new
TagHelperAttribute
("data-more", "else"),
538
new
TagHelperAttribute
("src", "/js/site.js"),
539
new
TagHelperAttribute
("asp-src-include", "**/*.js")
624
new
TagHelperAttribute
("src", "/js/site.js"),
625
new
TagHelperAttribute
("asp-append-version", "true")
651
new
TagHelperAttribute
("src", src),
652
new
TagHelperAttribute
("asp-append-version", "true")
680
new
TagHelperAttribute
("src", path),
681
new
TagHelperAttribute
("asp-append-version", "true")
736
new
TagHelperAttribute
("type", "importmap"),
737
new
TagHelperAttribute
("asp-importmap", importMap)
781
new
TagHelperAttribute
("type", "importmap"),
818
new
TagHelperAttribute
("src", "/bar/js/site.js"),
819
new
TagHelperAttribute
("asp-append-version", "true")
843
new
TagHelperAttribute
("src", "/js/site.js"),
844
new
TagHelperAttribute
("asp-fallback-src-include", "fallback.js"),
845
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
846
new
TagHelperAttribute
("asp-append-version", "true")
874
new
TagHelperAttribute
("src", "/js/site.js"),
875
new
TagHelperAttribute
("asp-fallback-src-include", "fallback.js"),
876
new
TagHelperAttribute
("asp-fallback-test", "isavailable()"),
877
new
TagHelperAttribute
("asp-append-version", "true")
961
new
TagHelperAttribute
("src", "/js/site.js"),
962
new
TagHelperAttribute
("asp-src-include", "*.js"),
963
new
TagHelperAttribute
("asp-append-version", "true")
999
new
TagHelperAttribute
("src", "/js/site.js"),
1000
new
TagHelperAttribute
("asp-src-include", "*.js"),
1001
new
TagHelperAttribute
("asp-append-version", "true")
1037
new
TagHelperAttribute
("src", path),
1038
new
TagHelperAttribute
("type", "module"),
1039
new
TagHelperAttribute
("asp-append-version", "true")
TagHelperOutputExtensionsTest.cs (77)
39
new
TagHelperAttribute
("first", "A"),
40
new
TagHelperAttribute
("second", "B"),
57
new
TagHelperAttribute
("second", "B"),
58
new
TagHelperAttribute
("second", "Duplicate B"),
59
new
TagHelperAttribute
("first", "A"),
76
new
TagHelperAttribute
("second", "B"),
77
new
TagHelperAttribute
("first", "A"),
78
new
TagHelperAttribute
("second", "Duplicate B"),
94
new
TagHelperAttribute
("first", "A"),
95
new
TagHelperAttribute
("second", "B"),
96
new
TagHelperAttribute
("dynamic", "value"),
113
new
TagHelperAttribute
("first", "A"),
114
new
TagHelperAttribute
("dynamic", "value"),
115
new
TagHelperAttribute
("secondDynamic", "another value"),
116
new
TagHelperAttribute
("second", "B"),
134
new
TagHelperAttribute
("first", "A"),
135
new
TagHelperAttribute
("second", "B"),
136
new
TagHelperAttribute
("dynamic", "value"),
137
new
TagHelperAttribute
("secondDynamic", "another value"),
156
new
TagHelperAttribute
("first", "A"),
157
new
TagHelperAttribute
("third", "C"),
158
new
TagHelperAttribute
("dynamic", "value"),
159
new
TagHelperAttribute
("secondDynamic", "another value"),
178
new
TagHelperAttribute
("first", "A"),
179
new
TagHelperAttribute
("third", "C"),
180
new
TagHelperAttribute
("dynamic", "value"),
181
new
TagHelperAttribute
("secondDynamic", "another value"),
201
new
TagHelperAttribute
("third", "C"),
202
new
TagHelperAttribute
("dynamic", "value"),
203
new
TagHelperAttribute
("first", "A"),
204
new
TagHelperAttribute
("secondDynamic", "another value"),
226
new
TagHelperAttribute
("third", "C"),
227
new
TagHelperAttribute
("first", "third first"),
228
new
TagHelperAttribute
("dynamic", "value"),
229
new
TagHelperAttribute
("first", "A"),
230
new
TagHelperAttribute
("secondDynamic", "another value"),
231
new
TagHelperAttribute
("first", "Second first"),
249
new
TagHelperAttribute
("third", "C"),
250
new
TagHelperAttribute
("first", "A"),
251
new
TagHelperAttribute
("third", "Duplicate Third"),
269
new
TagHelperAttribute
("third", "C"),
270
new
TagHelperAttribute
("first", "A"),
271
new
TagHelperAttribute
("third", "Duplicate Third"),
289
new
TagHelperAttribute
("first", "A"),
290
new
TagHelperAttribute
("first", "C"),
291
new
TagHelperAttribute
("first", "B"),
292
new
TagHelperAttribute
("third", "D"),
313
new
TagHelperAttribute
("third", "D"),
314
new
TagHelperAttribute
("first", "A"),
315
new
TagHelperAttribute
("first", "B"),
316
new
TagHelperAttribute
("first", "C"),
317
new
TagHelperAttribute
("dynamic", "value"),
318
new
TagHelperAttribute
("third", "Duplicate Third"),
368
new
TagHelperAttribute
("hello", "world"),
369
new
TagHelperAttribute
("hello", "world2"),
381
new
TagHelperAttribute
("hello", "world"),
382
new
TagHelperAttribute
("hello", "world2"),
394
new
TagHelperAttribute
("HelLO", "world"),
395
new
TagHelperAttribute
("HELLO", "world2"),
407
new
TagHelperAttribute
("hello", "world"),
408
new
TagHelperAttribute
("HELLO", "world2"),
420
new
TagHelperAttribute
("HeLlO", "world"),
421
new
TagHelperAttribute
("heLLo", "world2"),
477
var expectedAttribute = new
TagHelperAttribute
(attributeName, attributeValue);
504
var expectedAttribute = new
TagHelperAttribute
(attributeName, "world2");
565
var expectedAttribute = new
TagHelperAttribute
("type", "btn");
593
var expectedAttribute = new
TagHelperAttribute
("type", "btn");
619
var expectedAttribute = new
TagHelperAttribute
("type", "btn");
804
var expectedAttribute = new
TagHelperAttribute
("type", "btn");
832
var expectedAttribute = new
TagHelperAttribute
("class", "Hello btn");
866
new
TagHelperAttribute
(originalName, "Hello btn"),
882
var expectedAttribute = new
TagHelperAttribute
("visible", "val < 3");
904
var expectedAttribute1 = new
TagHelperAttribute
("class", "btn");
905
var expectedAttribute2 = new
TagHelperAttribute
("class2", "btn");
929
var expectedAttribute = new
TagHelperAttribute
("class", "btn");
951
var expectedOutputAttribute = new
TagHelperAttribute
("class", "btn");
955
var expectedBuilderAttribute = new
TagHelperAttribute
("for", "hello");
ValidationSummaryTagHelperTest.cs (7)
49
new
TagHelperAttribute
("class", "form-control validation-summary-valid"),
50
new
TagHelperAttribute
("data-valmsg-summary", "true"),
257
new
TagHelperAttribute
("class", "form-control validation-summary-errors"),
278
new
TagHelperAttribute
("class", "form-control validation-summary-errors"),
279
new
TagHelperAttribute
("data-valmsg-summary", "true"),
594
new
TagHelperAttribute
("class", "form-control validation-summary-errors"),
595
new
TagHelperAttribute
("data-valmsg-summary", "true"),
Microsoft.AspNetCore.Razor (2)
TagHelpers\TagHelperAttributeList.cs (2)
73
var attribute = new
TagHelperAttribute
(name, value);
131
var attribute = new
TagHelperAttribute
(name, value);
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperRunnerTest.cs (1)
219
output.Attributes[classIndex] = new
TagHelperAttribute
("class", "somethingelse");
Microsoft.AspNetCore.Razor.Test (217)
TagHelpers\ReadOnlyTagHelperAttributeListTest.cs (140)
14
var first = new
TagHelperAttribute
("First", "First Value");
15
var second = new
TagHelperAttribute
("Second", "Second Value");
16
var third = new
TagHelperAttribute
("Third", "Third Value");
58
var first = new
TagHelperAttribute
("First", "First Value");
59
var second = new
TagHelperAttribute
("Second", "Second Value");
60
var third = new
TagHelperAttribute
("Third", "Third Value");
110
new
TagHelperAttribute
("a", "av"),
111
new
TagHelperAttribute
("b", "bv")
122
var A = new
TagHelperAttribute
("AName", "AName Value");
123
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
124
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
125
var B = new
TagHelperAttribute
("BName", "BName Value");
126
var C = new
TagHelperAttribute
("CName", "CName Value");
209
var A = new
TagHelperAttribute
("AName", "AName Value");
210
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
211
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
212
var B = new
TagHelperAttribute
("BName", "BName Value");
213
var C = new
TagHelperAttribute
("CName", "CName Value");
221
{ new[] { A }, new
TagHelperAttribute
(A.Name, A.Value), true },
222
{ new[] { A }, new
TagHelperAttribute
("aname", A.Value), true },
224
{ new[] { A, B }, new
TagHelperAttribute
(A.Name, A.Value), true },
225
{ new[] { A, B }, new
TagHelperAttribute
("AnaMe", A.Value), true },
227
{ new[] { A, B }, new
TagHelperAttribute
(B.Name, B.Value), true },
228
{ new[] { A, B }, new
TagHelperAttribute
("BNAME", B.Value), true },
230
{ new[] { A, B, C }, new
TagHelperAttribute
(B.Name, B.Value), true },
231
{ new[] { A, B, C }, new
TagHelperAttribute
("bname", B.Value), true },
233
{ new[] { A, B, C }, new
TagHelperAttribute
(C.Name, C.Value), true },
234
{ new[] { A, B, C }, new
TagHelperAttribute
("CNAme", C.Value), true },
236
{ new[] { A }, new
TagHelperAttribute
(A.Name, "different value"), false },
237
{ new[] { A }, new
TagHelperAttribute
("aname_not", "different value"), false },
239
{ new[] { A, B }, new
TagHelperAttribute
(A.Name, "different value"), false },
240
{ new[] { A, B }, new
TagHelperAttribute
("AnaMe_not", "different value"), false },
241
{ new[] { A, B }, new
TagHelperAttribute
(B.Name, "different value"), false },
242
{ new[] { A, B }, new
TagHelperAttribute
("BNAME_not", "different value"), false },
244
{ new[] { A, B, C }, new
TagHelperAttribute
(B.Name, "different value"), false },
245
{ new[] { A, B, C }, new
TagHelperAttribute
("bname_not", "different value"), false },
246
{ new[] { A, B, C }, new
TagHelperAttribute
(C.Name, "different value"), false },
247
{ new[] { A, B, C }, new
TagHelperAttribute
("CNAme_not", "different value"), false },
251
{ new[] { A, B, A2, C }, new
TagHelperAttribute
(A.Name, A.Value), true },
252
{ new[] { A, B, A2, C }, new
TagHelperAttribute
("aname", A.Value), true },
254
{ new[] { B, A2, A }, new
TagHelperAttribute
(A.Name, A.Value), true },
255
{ new[] { B, A2, A }, new
TagHelperAttribute
("AnAME", A2.Value), true },
257
{ new[] { B, A2, A, C }, new
TagHelperAttribute
(A.Name, A.Value), true },
258
{ new[] { B, A2, A, C }, new
TagHelperAttribute
("ANAME", A.Value), true },
260
{ new[] { A, A3 }, new
TagHelperAttribute
(A.Name, A.Value), true },
261
{ new[] { A, A3 }, new
TagHelperAttribute
("ANamE", A.Value), true },
263
{ new[] { A3, A }, new
TagHelperAttribute
(A3.Name, A3.Value), true },
264
{ new[] { A3, A }, new
TagHelperAttribute
("anamE", A3.Value), true },
266
{ new[] { A, A2, A3 }, new
TagHelperAttribute
(A.Name, A.Value), true },
267
{ new[] { A, A2, A3 }, new
TagHelperAttribute
("ANAme", A.Value), true },
269
{ new[] { C, B, A3, A }, new
TagHelperAttribute
(A3.Name, A3.Value), true },
270
{ new[] { C, B, A3, A }, new
TagHelperAttribute
("aname", A3.Value), true },
272
{ new[] { A, B, A2, C }, new
TagHelperAttribute
(A.Name, A3.Value), false },
273
{ new[] { A, B, A2, C }, new
TagHelperAttribute
("aname_not", "different value"), false },
275
{ new[] { B, A2, A }, new
TagHelperAttribute
(A.Name, A3.Value), false },
276
{ new[] { B, A2, A }, new
TagHelperAttribute
("AnAME_not", "different value"), false },
278
{ new[] { B, A2, A, C }, new
TagHelperAttribute
(A.Name, A3.Value), false },
279
{ new[] { B, A2, A, C }, new
TagHelperAttribute
("ANAME_not", "different value"), false },
281
{ new[] { A, A3 }, new
TagHelperAttribute
(A.Name, A2.Value), false },
282
{ new[] { A, A3 }, new
TagHelperAttribute
("ANamE_not", "different value"), false },
284
{ new[] { A3, A }, new
TagHelperAttribute
(A3.Name, A2.Value), false },
285
{ new[] { A3, A }, new
TagHelperAttribute
("anamE_not", "different value"), false },
287
{ new[] { A, A2, A3 }, new
TagHelperAttribute
(A.Name, B.Value), false },
288
{ new[] { A, A2, A3 }, new
TagHelperAttribute
("ANAme_not", "different value"), false },
290
{ new[] { C, B, A3, A }, new
TagHelperAttribute
(A3.Name, A2.Value), false },
291
{ new[] { C, B, A3, A }, new
TagHelperAttribute
("aname_not", "different value"), false },
317
var A = new
TagHelperAttribute
("AName", "AName Value");
318
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
319
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
320
var B = new
TagHelperAttribute
("BName", "BName Value");
321
var C = new
TagHelperAttribute
("CName", "CName Value");
393
var A = new
TagHelperAttribute
("AName", "AName Value");
394
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
395
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
396
var B = new
TagHelperAttribute
("BName", "BName Value");
397
var C = new
TagHelperAttribute
("CName", "CName Value");
405
{ new[] { A }, new
TagHelperAttribute
(A.Name, A.Value), 0 },
406
{ new[] { A }, new
TagHelperAttribute
("aname", A.Value), 0 },
408
{ new[] { A, B }, new
TagHelperAttribute
(A.Name, A.Value), 0 },
409
{ new[] { A, B }, new
TagHelperAttribute
("AnaMe", A.Value), 0 },
411
{ new[] { A, B }, new
TagHelperAttribute
(B.Name, B.Value), 1 },
412
{ new[] { A, B }, new
TagHelperAttribute
("BNAME", B.Value), 1 },
414
{ new[] { A, B, C }, new
TagHelperAttribute
(B.Name, B.Value), 1 },
415
{ new[] { A, B, C }, new
TagHelperAttribute
("bname", B.Value), 1 },
417
{ new[] { A, B, C }, new
TagHelperAttribute
(C.Name, C.Value), 2 },
418
{ new[] { A, B, C }, new
TagHelperAttribute
("CNAme", C.Value), 2 },
420
{ new[] { A }, new
TagHelperAttribute
(A.Name, "different value"), -1 },
421
{ new[] { A }, new
TagHelperAttribute
("aname_not", "different value"), -1 },
423
{ new[] { A, B }, new
TagHelperAttribute
(A.Name, "different value"), -1 },
424
{ new[] { A, B }, new
TagHelperAttribute
("AnaMe_not", "different value"), -1 },
425
{ new[] { A, B }, new
TagHelperAttribute
(B.Name, "different value"), -1 },
426
{ new[] { A, B }, new
TagHelperAttribute
("BNAME_not", "different value"), -1 },
428
{ new[] { A, B, C }, new
TagHelperAttribute
(B.Name, "different value"), -1 },
429
{ new[] { A, B, C }, new
TagHelperAttribute
("bname_not", "different value"), -1 },
430
{ new[] { A, B, C }, new
TagHelperAttribute
(C.Name, "different value"), -1 },
431
{ new[] { A, B, C }, new
TagHelperAttribute
("CNAme_not", "different value"), -1 },
435
{ new[] { A, B, A2, C }, new
TagHelperAttribute
(A.Name, A.Value), 0 },
436
{ new[] { A, B, A2, C }, new
TagHelperAttribute
("aname", A.Value), 0 },
438
{ new[] { B, A2, A }, new
TagHelperAttribute
(A.Name, A.Value), 2 },
439
{ new[] { B, A2, A }, new
TagHelperAttribute
("AnAME", A2.Value), 1 },
441
{ new[] { B, A2, A, C }, new
TagHelperAttribute
(A.Name, A.Value), 2 },
442
{ new[] { B, A2, A, C }, new
TagHelperAttribute
("ANAME", A.Value), 2 },
444
{ new[] { A, A3 }, new
TagHelperAttribute
(A.Name, A.Value), 0 },
445
{ new[] { A, A3 }, new
TagHelperAttribute
("ANamE", A.Value), 0 },
447
{ new[] { A3, A }, new
TagHelperAttribute
(A3.Name, A3.Value), 0 },
448
{ new[] { A3, A }, new
TagHelperAttribute
("anamE", A3.Value), 0 },
450
{ new[] { A, A2, A3 }, new
TagHelperAttribute
(A.Name, A.Value), 0 },
451
{ new[] { A, A2, A3 }, new
TagHelperAttribute
("ANAme", A.Value), 0 },
453
{ new[] { C, B, A3, A }, new
TagHelperAttribute
(A3.Name, A3.Value), 2 },
454
{ new[] { C, B, A3, A }, new
TagHelperAttribute
("aname", A3.Value), 2 },
456
{ new[] { A, B, A2, C }, new
TagHelperAttribute
(A.Name, A3.Value), -1 },
457
{ new[] { A, B, A2, C }, new
TagHelperAttribute
("aname_not", "different value"), -1 },
459
{ new[] { B, A2, A }, new
TagHelperAttribute
(A.Name, A3.Value), -1 },
460
{ new[] { B, A2, A }, new
TagHelperAttribute
("AnAME_not", "different value"), -1 },
462
{ new[] { B, A2, A, C }, new
TagHelperAttribute
(A.Name, A3.Value), -1 },
463
{ new[] { B, A2, A, C }, new
TagHelperAttribute
("ANAME_not", "different value"), -1 },
465
{ new[] { A, A3 }, new
TagHelperAttribute
(A.Name, A2.Value), -1 },
466
{ new[] { A, A3 }, new
TagHelperAttribute
("ANamE_not", "different value"), -1 },
468
{ new[] { A3, A }, new
TagHelperAttribute
(A3.Name, A2.Value), -1 },
469
{ new[] { A3, A }, new
TagHelperAttribute
("anamE_not", "different value"), -1 },
471
{ new[] { A, A2, A3 }, new
TagHelperAttribute
(A.Name, B.Value), -1 },
472
{ new[] { A, A2, A3 }, new
TagHelperAttribute
("ANAme_not", "different value"), -1 },
474
{ new[] { C, B, A3, A }, new
TagHelperAttribute
(A3.Name, A2.Value), -1 },
475
{ new[] { C, B, A3, A }, new
TagHelperAttribute
("aname_not", "different value"), -1 },
501
var A = new
TagHelperAttribute
("AName", "AName Value");
502
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
503
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
504
var B = new
TagHelperAttribute
("BName", "BName Value");
505
var C = new
TagHelperAttribute
("CName", "CName Value");
573
var A = new
TagHelperAttribute
("AName", "AName Value");
574
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
575
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
576
var B = new
TagHelperAttribute
("BName", "BName Value");
577
var C = new
TagHelperAttribute
("CName", "CName Value");
647
new
TagHelperAttribute
("A", "AV"),
648
new
TagHelperAttribute
("B", "BV")
664
new
TagHelperAttribute
("A", "AV"),
665
new
TagHelperAttribute
("B", "BV")
679
new
TagHelperAttribute
("A", "AV"),
680
new
TagHelperAttribute
("B", "BV")
TagHelpers\TagHelperAttributeListTest.cs (75)
33
var first = new
TagHelperAttribute
("First", "First Value");
34
var second = new
TagHelperAttribute
("Second", "Second Value");
35
var third = new
TagHelperAttribute
("Third", "Third Value");
36
var set = new
TagHelperAttribute
("Set", "Set Value");
81
new
TagHelperAttribute
("A", "AV"),
82
new
TagHelperAttribute
("B", "BV")
98
new
TagHelperAttribute
("A", "AV"),
99
new
TagHelperAttribute
("B", "BV")
105
attributes[index] = new
TagHelperAttribute
("C", "CV");
132
var A = new
TagHelperAttribute
("AName", "AName Value");
133
var ASet1 = new
TagHelperAttribute
("AName", "AName Set Value");
134
var ASet2 = new
TagHelperAttribute
("AnAmE", "AName Set Value");
135
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
136
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
137
var A3Set = new
TagHelperAttribute
("aname", "AName Third Set Value");
138
var B = new
TagHelperAttribute
("BName", "BName Value");
139
var BSet1 = new
TagHelperAttribute
("BName", "BName Set Value");
140
var BSet2 = new
TagHelperAttribute
("BnAmE", "BName Set Value");
141
var C = new
TagHelperAttribute
("CName", "CName Value");
142
var CSet1 = new
TagHelperAttribute
("CName", "CName Set Value");
143
var CSet2 = new
TagHelperAttribute
("cnamE", "CName Set Value");
144
var set = new
TagHelperAttribute
("Set", "Set Value");
204
new
TagHelperAttribute
("A", "AV"),
205
new
TagHelperAttribute
("B", "BV")
211
attributes[2] = new
TagHelperAttribute
("C", "CV");
232
var A = new
TagHelperAttribute
("AName", "AName Value");
233
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
234
var B = new
TagHelperAttribute
("BName", "BName Value");
269
var A = new
TagHelperAttribute
("AName", "AName Value");
270
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
271
var B = new
TagHelperAttribute
("BName", "BName Value");
316
new
TagHelperAttribute
("a", "av"),
317
new
TagHelperAttribute
("b", "bv"),
322
() => attributes.Insert(3, new
TagHelperAttribute
("c", "cb")));
329
var A = new
TagHelperAttribute
("AName", "AName Value");
330
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
331
var B = new
TagHelperAttribute
("BName", "BName Value");
379
var A = new
TagHelperAttribute
("AName", "AName Value");
380
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
381
var A3 = new
TagHelperAttribute
("AName", "AName Third Value");
382
var B = new
TagHelperAttribute
("BName", "BName Value");
383
var C = new
TagHelperAttribute
("CName", "CName Value");
451
var A = new
TagHelperAttribute
("AName", "av");
452
var A2 = new
TagHelperAttribute
("aname", "av");
453
var A3 = new
TagHelperAttribute
("AName", "av");
454
var B = new
TagHelperAttribute
("BName", "bv");
455
var C = new
TagHelperAttribute
("CName", "cv");
465
{ new[] { A }, new
TagHelperAttribute
("AnAmE", "av"), empty, true },
467
{ new[] { A, B }, new
TagHelperAttribute
("AnAmE", "av"), new[] { B }, true },
469
{ new[] { A, B }, new
TagHelperAttribute
("BnAmE", "bv"), new[] { A }, true },
471
{ new[] { A, B, C }, new
TagHelperAttribute
("bname", "bv"), new[] { A, C }, true },
473
{ new[] { A, B, C }, new
TagHelperAttribute
("cnamE", "cv"), new[] { A, B }, true },
477
{ new[] { A, B, A2, C }, new
TagHelperAttribute
("aname", "av"), new[] { B, A2, C }, true },
478
{ new[] { B, A2, A }, new
TagHelperAttribute
("aname", "av"), new[] { B, A }, true },
481
{ new[] { A3, A }, new
TagHelperAttribute
("aname", "av"), new[] { A }, true },
482
{ new[] { A, A2, A3 }, new
TagHelperAttribute
("AName", "av"), new[] { A2, A3 }, true },
483
{ new[] { C, B, A3, A }, new
TagHelperAttribute
("AName", "av"), new[] { C, B, A }, true },
486
{ Enumerable.Empty<TagHelperAttribute>(), new
TagHelperAttribute
("DoesNotExist", "_0_"), Enumerable.Empty<TagHelperAttribute>(), false },
487
{ new[] { A }, new
TagHelperAttribute
("DoesNotExist", "_AName_"), new[] { A }, false },
488
{ new[] { A }, new
TagHelperAttribute
("DoesNotExist", "completely different"), new[] { A }, false },
489
{ new[] { A, B }, new
TagHelperAttribute
("DoesNotExist", "_AName_"), new[] { A, B }, false },
490
{ new[] { A, B }, new
TagHelperAttribute
("DoesNotExist", "completely different"), new[] { A, B }, false },
491
{ new[] { A, B, C }, new
TagHelperAttribute
("DoesNotExist", "_BName_"), new[] { A, B, C }, false },
492
{ new[] { A, B, C }, new
TagHelperAttribute
("DoesNotExist", "completely different"), new[] { A, B, C }, false },
493
{ new[] { A, A2, B, C }, new
TagHelperAttribute
("DoesNotExist", "_cnamE_"), new[] { A, A2, B, C }, false },
494
{ new[] { A, A2, B, C }, new
TagHelperAttribute
("DoesNotExist", "completely different"), new[] { A, A2, B, C }, false },
495
{ new[] { A, A2, A3, B, C }, new
TagHelperAttribute
("DoesNotExist", "_cnamE_"), new[] { A, A2, A3, B, C }, false },
496
{ new[] { A, A2, A3, B, C }, new
TagHelperAttribute
("DoesNotExist", "completely different"), new[] { A, A2, A3, B, C }, false },
524
var A = new
TagHelperAttribute
("AName", "AName Value");
525
var A2 = new
TagHelperAttribute
("aname", "AName Second Value");
526
var B = new
TagHelperAttribute
("BName", "BName Value");
569
new
TagHelperAttribute
("a", "av"),
570
new
TagHelperAttribute
("b", "bv"),
585
new
TagHelperAttribute
("a", "av"),
586
new
TagHelperAttribute
("b", "bv"),
TagHelpers\TagHelperOutputTest.cs (2)
397
new
TagHelperAttribute
(updateName, "super button"),
526
new
TagHelperAttribute
("first", "unminimized"),