36 references to EnumWithDuplicates
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (36)
DataAnnotationsMetadataProviderTest.cs (36)
621[InlineData(typeof(EnumWithDuplicates), true)]
622[InlineData(typeof(EnumWithDuplicates?), true)]
655[InlineData(typeof(EnumWithDuplicates), false)]
656[InlineData(typeof(EnumWithDuplicates?), false)]
718typeof(EnumWithDuplicates),
721{ nameof(EnumWithDuplicates.Zero), "0" },
722{ nameof(EnumWithDuplicates.None), "0" },
723{ nameof(EnumWithDuplicates.One), "1" },
724{ nameof(EnumWithDuplicates.Two), "2" },
725{ nameof(EnumWithDuplicates.Duece), "2" },
726{ nameof(EnumWithDuplicates.Three), "3" },
727{ nameof(EnumWithDuplicates.MoreThanTwo), "3" },
731typeof(EnumWithDuplicates?),
734{ nameof(EnumWithDuplicates.Zero), "0" },
735{ nameof(EnumWithDuplicates.None), "0" },
736{ nameof(EnumWithDuplicates.One), "1" },
737{ nameof(EnumWithDuplicates.Two), "2" },
738{ nameof(EnumWithDuplicates.Duece), "2" },
739{ nameof(EnumWithDuplicates.Three), "3" },
740{ nameof(EnumWithDuplicates.MoreThanTwo), "3" },
896typeof(EnumWithDuplicates),
899new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Zero)), "0"),
900new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.None)), "0"),
901new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.One)), "1"),
902new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Two)), "2"),
903new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Duece)), "2"),
904new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Three)), "3"),
905new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.MoreThanTwo)), "3"),
909typeof(EnumWithDuplicates?),
912new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Zero)), "0"),
913new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.None)), "0"),
914new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.One)), "1"),
915new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Two)), "2"),
916new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Duece)), "2"),
917new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.Three)), "3"),
918new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithDuplicates.MoreThanTwo)), "3"),