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