15 references to IntEnum
Microsoft.AspNetCore.Mvc.Core.Test (15)
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (15)
384var bindingContext = GetBindingContext(typeof(IntEnum)); 390var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 397var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 398Assert.Equal(IntEnum.Value1, boundModel); 405var bindingContext = GetBindingContext(typeof(IntEnum)); 411var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 418var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 419Assert.Equal(IntEnum.Value1, boundModel); 446var bindingContext = GetBindingContext(typeof(IntEnum)); 452var binder = new SimpleTypeModelBinder(typeof(IntEnum), NullLoggerFactory.Instance); 459var boundModel = Assert.IsType<IntEnum>(bindingContext.Result.Model); 460Assert.Equal((IntEnum)expected, boundModel);