28 references to EnumWithFlags
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (28)
DataAnnotationsMetadataProviderTest.cs (28)
623[InlineData(typeof(EnumWithFlags), true)]
624[InlineData(typeof(EnumWithFlags?), true)]
657[InlineData(typeof(EnumWithFlags), true)]
658[InlineData(typeof(EnumWithFlags?), true)]
744typeof(EnumWithFlags),
747{ nameof(EnumWithFlags.All), "-1" },
748{ nameof(EnumWithFlags.Zero), "0" },
749{ nameof(EnumWithFlags.One), "1" },
750{ nameof(EnumWithFlags.Two), "2" },
751{ nameof(EnumWithFlags.Four), "4" },
755typeof(EnumWithFlags?),
758{ nameof(EnumWithFlags.All), "-1" },
759{ nameof(EnumWithFlags.Zero), "0" },
760{ nameof(EnumWithFlags.One), "1" },
761{ nameof(EnumWithFlags.Two), "2" },
762{ nameof(EnumWithFlags.Four), "4" },
922typeof(EnumWithFlags),
925new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"),
926new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"),
927new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"),
928new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"),
929new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"),
933typeof(EnumWithFlags?),
936new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"),
937new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"),
938new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"),
939new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"),
940new KeyValuePair<EnumGroupAndName, string>(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"),