diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/LocalizationTest.cs b/test/Microsoft.AspNet.Mvc.FunctionalTests/LocalizationTest.cs index e9a6b9246f..68f2388476 100644 --- a/test/Microsoft.AspNet.Mvc.FunctionalTests/LocalizationTest.cs +++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/LocalizationTest.cs @@ -46,13 +46,17 @@ mypartial "; yield return new[] { "fr", expected2 }; - var expected3 = -@" + if (!TestPlatformHelper.IsMono) + { + // https://github.com/aspnet/Mvc/issues/2759 + var expected3 = + @" index partial mypartial "; - yield return new[] { "!-invalid-!", expected3 }; + yield return new[] { "!-invalid-!", expected3 }; + } } } diff --git a/test/Microsoft.AspNet.Mvc.FunctionalTests/ViewEngineTests.cs b/test/Microsoft.AspNet.Mvc.FunctionalTests/ViewEngineTests.cs index 10b66ec342..5eeff1bd97 100644 --- a/test/Microsoft.AspNet.Mvc.FunctionalTests/ViewEngineTests.cs +++ b/test/Microsoft.AspNet.Mvc.FunctionalTests/ViewEngineTests.cs @@ -144,9 +144,13 @@ gb-partial"; fr-partial"; yield return new[] { "fr", expected2 }; - var expected3 = @"expander-index + if (!TestPlatformHelper.IsMono) + { + // https://github.com/aspnet/Mvc/issues/2759 + var expected3 = @"expander-index expander-partial"; - yield return new[] { "!-invalid-!", expected3 }; + yield return new[] { "!-invalid-!", expected3 }; + } } } @@ -290,7 +294,11 @@ View With Layout yield return new[] { "en-GB", expected1 }; - yield return new[] { "!-invalid-!", expected1 }; + if (!TestPlatformHelper.IsMono) + { + // https://github.com/aspnet/Mvc/issues/2759 + yield return new[] { "!-invalid-!", expected1 }; + } var expected2 = @"