19 references to EnumWithFields
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (19)
Rendering\HtmlHelperSelectTest.cs (19)
1313var metadata = metadataProvider.GetMetadataForType(typeof(EnumWithFields)); 1329var metadata = metadataProvider.GetMetadataForType(typeof(EnumWithFields)); 1333var result = htmlHelper.GetEnumSelectList<EnumWithFields>(); 1389var metadata = metadataProvider.GetMetadataForType(typeof(EnumWithFields)); 1393var result = htmlHelper.GetEnumSelectList(typeof(EnumWithFields)); 1461typeof(EnumWithFields), 1464new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1465new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1466new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1467new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1468new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1469new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" }, 1473typeof(EnumWithFields?), 1476new SelectListItem { Text = nameof(EnumWithFields.Zero), Value = "0" }, 1477new SelectListItem { Text = nameof(EnumWithFields.One), Value = "1" }, 1478new SelectListItem { Text = nameof(EnumWithFields.Two), Value = "2" }, 1479new SelectListItem { Text = nameof(EnumWithFields.Three), Value = "3" }, 1480new SelectListItem { Text = nameof(EnumWithFields.MinusTwo), Value = "-2" }, 1481new SelectListItem { Text = nameof(EnumWithFields.MinusOne), Value = "-1" },