From 0ad959e236156269cf17a2a749f26123a5a0c24c Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 16 Oct 2014 07:10:00 -0700 Subject: [PATCH] DateTimeOffset doesn't have a TypeConverter in Mono --- .../Binders/TypeConverterModelBinderTest.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/TypeConverterModelBinderTest.cs b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/TypeConverterModelBinderTest.cs index 7c16625922..d8910b277c 100644 --- a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/TypeConverterModelBinderTest.cs +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Binders/TypeConverterModelBinderTest.cs @@ -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