DateTimeOffset doesn't have a TypeConverter in Mono
This commit is contained in:
parent
acb2a99e9f
commit
0ad959e236
|
|
@ -44,6 +44,13 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
|
|||
[InlineData(typeof(DayOfWeek))]
|
||||
public async Task BindModel_ReturnsTrue_IfTypeCanBeConverted(Type destinationType)
|
||||
{
|
||||
if (TestPlatformHelper.IsMono &&
|
||||
destinationType == typeof(DateTimeOffset))
|
||||
{
|
||||
// DateTimeOffset doesn't have a TypeConverter in Mono
|
||||
return;
|
||||
}
|
||||
|
||||
// Arrange
|
||||
var bindingContext = GetBindingContext(destinationType);
|
||||
bindingContext.ValueProvider = new SimpleHttpValueProvider
|
||||
|
|
|
|||
Loading…
Reference in New Issue