32 references to EnumWithFields
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (32)
DataAnnotationsMetadataProviderTest.cs (32)
625[InlineData(typeof(EnumWithFields), true)]
626[InlineData(typeof(EnumWithFields?), true)]
659[InlineData(typeof(EnumWithFields), false)]
660[InlineData(typeof(EnumWithFields?), false)]
766typeof(EnumWithFields),
769{ nameof(EnumWithFields.MinusTwo), "-2" },
770{ nameof(EnumWithFields.MinusOne), "-1" },
771{ nameof(EnumWithFields.Zero), "0" },
772{ nameof(EnumWithFields.One), "1" },
773{ nameof(EnumWithFields.Two), "2" },
774{ nameof(EnumWithFields.Three), "3" },
778typeof(EnumWithFields?),
781{ nameof(EnumWithFields.MinusTwo), "-2" },
782{ nameof(EnumWithFields.MinusOne), "-1" },
783{ nameof(EnumWithFields.Zero), "0" },
784{ nameof(EnumWithFields.One), "1" },
785{ nameof(EnumWithFields.Two), "2" },
786{ nameof(EnumWithFields.Three), "3" },
944typeof(EnumWithFields),
947new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"),
948new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"),
949new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"),
950new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"),
951new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"),
952new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"),
956typeof(EnumWithFields?),
959new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"),
960new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"),
961new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"),
962new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"),
963new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"),
964new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"),