16 writes to Group
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
HtmlHelper.cs (1)
1399
selectListItem.
Group
= group;
Rendering\MultiSelectList.cs (2)
166
Group
= GetGroup(item),
191
Group
= GetGroup(item),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
Rendering\HtmlHelperSelectTest.cs (13)
43
new SelectListItem("Zero", "0", true) {
Group
= GroupOne },
44
new SelectListItem("One", "1", false) {
Group
= GroupTwo },
45
new SelectListItem("Two", "2", true) {
Group
= GroupOne },
46
new SelectListItem("Three", "3", false) {
Group
= null },
50
new SelectListItem("Zero", "0", true) {
Group
= GroupOne },
51
new SelectListItem("One", "1", true) {
Group
= GroupOne },
52
new SelectListItem("Two", "2", false) {
Group
= GroupOne },
53
new SelectListItem("Three", "3", false) {
Group
= GroupOne },
57
new SelectListItem("Zero", "0", true) {
Group
= DisabledGroup },
58
new SelectListItem("One", "1", true) {
Group
= DisabledGroup },
59
new SelectListItem("Two", "2", true) {
Group
= DisabledGroup },
60
new SelectListItem("Three", "3", true) {
Group
= DisabledGroup },
1603
Group
= item.Group,
16 references to Group
Microsoft.AspNetCore.Mvc.TagHelpers.Test (4)
SelectTagHelperTest.cs (4)
321
var savedGroup = items.Select(item => item.
Group
).ToList();
350
Assert.Equal(savedGroup, items.Select(item => item.
Group
));
502
var savedGroup = items.Select(item => item.
Group
).ToList();
530
Assert.Equal(savedGroup, items.Select(item => item.
Group
));
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (2)
1599
var optGroup = item.
Group
;
1620
object.ReferenceEquals(optGroup, groupItem.
Group
))
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Rendering\HtmlHelperSelectTest.cs (10)
328
var savedGroup = selectList.Select(item => item.
Group
).ToList();
339
Assert.Equal(savedGroup, selectList.Select(item => item.
Group
));
749
var savedGroup = selectList.Select(item => item.
Group
).ToList();
760
Assert.Equal(savedGroup, selectList.Select(item => item.
Group
));
1091
var savedGroup = selectList.Select(item => item.
Group
).ToList();
1106
Assert.Equal(savedGroup, selectList.Select(item => item.
Group
));
1188
var savedGroup = selectList.Select(item => item.
Group
).ToList();
1199
Assert.Equal(savedGroup, selectList.Select(item => item.
Group
));
1563
Assert.Null(actualItem.
Group
);
1603
Group = item.
Group
,