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