24 references to EnumWithDisplayNames
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (24)
DataAnnotationsMetadataProviderTest.cs (24)
619[InlineData(typeof(EnumWithDisplayNames), true)]
620[InlineData(typeof(EnumWithDisplayNames?), true)]
653[InlineData(typeof(EnumWithDisplayNames), false)]
654[InlineData(typeof(EnumWithDisplayNames?), false)]
694typeof(EnumWithDisplayNames),
697{ nameof(EnumWithDisplayNames.MinusTwo), "-2" },
698{ nameof(EnumWithDisplayNames.MinusOne), "-1" },
699{ nameof(EnumWithDisplayNames.Zero), "0" },
700{ nameof(EnumWithDisplayNames.One), "1" },
701{ nameof(EnumWithDisplayNames.Two), "2" },
702{ nameof(EnumWithDisplayNames.Three), "3" },
706typeof(EnumWithDisplayNames?),
709{ nameof(EnumWithDisplayNames.MinusTwo), "-2" },
710{ nameof(EnumWithDisplayNames.MinusOne), "-1" },
711{ nameof(EnumWithDisplayNames.Zero), "0" },
712{ nameof(EnumWithDisplayNames.One), "1" },
713{ nameof(EnumWithDisplayNames.Two), "2" },
714{ nameof(EnumWithDisplayNames.Three), "3" },
821new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"),
828var type = typeof(EnumWithDisplayNames);
870typeof(EnumWithDisplayNames),
874new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"),
882typeof(EnumWithDisplayNames?),
886new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"),