30 references to FlagsEnum
Microsoft.AspNetCore.Mvc.Core.Test (30)
ModelBinding\Binders\EnumTypeModelBinderTest.cs (30)
13[InlineData(typeof(FlagsEnum?))]
29[InlineData(typeof(FlagsEnum))]
75var modelType = typeof(FlagsEnum);
87var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model);
99var modelType = typeof(FlagsEnum?);
111var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model);
118[InlineData(typeof(FlagsEnum), "19")]
119[InlineData(typeof(FlagsEnum), "0")]
120[InlineData(typeof(FlagsEnum), "1, 16")]
123[InlineData(typeof(FlagsEnum), "32,015")]
124[InlineData(typeof(FlagsEnum), "32,128")]
126[InlineData(typeof(FlagsEnum?), "19")]
127[InlineData(typeof(FlagsEnum?), "0")]
128[InlineData(typeof(FlagsEnum?), "1, 16")]
131[InlineData(typeof(FlagsEnum?), "32,015")]
132[InlineData(typeof(FlagsEnum?), "32,128")]
161var modelType = typeof(FlagsEnum);
173var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model);
186var modelType = typeof(FlagsEnum?);
198var boundModel = Assert.IsType<FlagsEnum>(bindingContext.Result.Model);
203[InlineData(typeof(FlagsEnum), "1,16")]
206[InlineData(typeof(FlagsEnum), "32,015")]
207[InlineData(typeof(FlagsEnum), "32,128")]
208[InlineData(typeof(FlagsEnum?), "1,16")]
211[InlineData(typeof(FlagsEnum?), "32,015")]
212[InlineData(typeof(FlagsEnum?), "32,128")]