Skip to content

Commit 392aa46

Browse files
committed
Oops wrong test
1 parent a2ba364 commit 392aa46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Microsoft.AspNet.Mvc.ModelBinding.Test/Validation/CompareAttributeTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ public void ClientRulesWithCompareAttribute_ErrorMessageUsesPropertyName()
6161
Assert.Equal("'MyProperty' and 'OtherProperty' do not match.", rule.ErrorMessage);
6262
}
6363

64-
// Test currently fails under CoreCLR; DataAnnotations unable to find the resource.
65-
#if NET45
6664
[Fact]
6765
public void ClientRulesWithCompareAttribute_ErrorMessageUsesOverride()
6866
{
@@ -83,8 +81,9 @@ public void ClientRulesWithCompareAttribute_ErrorMessageUsesOverride()
8381
var rule = Assert.Single(rules);
8482
Assert.Equal("Hello 'MyProperty', goodbye 'OtherProperty'.", rule.ErrorMessage);
8583
}
86-
#endif
8784

85+
// Test currently fails under CoreCLR; DataAnnotations unable to find the resource.
86+
#if NET45
8887
[Fact]
8988
public void ClientRulesWithCompareAttribute_ErrorMessageUsesResourceOverride()
9089
{
@@ -106,6 +105,7 @@ public void ClientRulesWithCompareAttribute_ErrorMessageUsesResourceOverride()
106105
var rule = Assert.Single(rules);
107106
Assert.Equal("Comparing MyProperty to OtherProperty.", rule.ErrorMessage);
108107
}
108+
#endif
109109

110110
private class PropertyDisplayNameModel
111111
{

0 commit comments

Comments
 (0)