15 references to IntEnum
Microsoft.AspNetCore.Mvc.Core.Test (15)
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (15)
310var bindingContext = GetBindingContext(typeof(IntEnum)); 316var binder = CreateBinder(typeof(IntEnum)); 323var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 324Assert.Equal(IntEnum.Value1, boundModel); 331var bindingContext = GetBindingContext(typeof(IntEnum)); 337var binder = CreateBinder(typeof(IntEnum)); 344var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 345Assert.Equal(IntEnum.Value1, boundModel); 368var bindingContext = GetBindingContext(typeof(IntEnum)); 374var binder = CreateBinder(typeof(IntEnum)); 381var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 382Assert.Equal((IntEnum)expected, boundModel);