Oops wrong test
This commit is contained in:
parent
a2ba36498a
commit
392aa464b2
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue