Oops wrong test

This commit is contained in:
dougbu 2014-05-01 19:22:16 -07:00
parent a2ba36498a
commit 392aa464b2
1 changed files with 3 additions and 3 deletions

View File

@ -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
{