diff --git a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Validation/CompareAttributeTest.cs b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Validation/CompareAttributeTest.cs index 4fee7ee82a..da3c0d03f3 100644 --- a/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Validation/CompareAttributeTest.cs +++ b/test/Microsoft.AspNet.Mvc.ModelBinding.Test/Validation/CompareAttributeTest.cs @@ -61,8 +61,6 @@ namespace Microsoft.AspNet.Mvc.ModelBinding Assert.Equal("'MyProperty' and 'OtherProperty' do not match.", rule.ErrorMessage); } - // Test currently fails under CoreCLR; DataAnnotations unable to find the resource. -#if NET45 [Fact] public void ClientRulesWithCompareAttribute_ErrorMessageUsesOverride() { @@ -83,8 +81,9 @@ namespace Microsoft.AspNet.Mvc.ModelBinding var rule = Assert.Single(rules); Assert.Equal("Hello 'MyProperty', goodbye 'OtherProperty'.", rule.ErrorMessage); } -#endif + // Test currently fails under CoreCLR; DataAnnotations unable to find the resource. +#if NET45 [Fact] public void ClientRulesWithCompareAttribute_ErrorMessageUsesResourceOverride() { @@ -106,6 +105,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding var rule = Assert.Single(rules); Assert.Equal("Comparing MyProperty to OtherProperty.", rule.ErrorMessage); } +#endif private class PropertyDisplayNameModel {