File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
test/Microsoft.AspNet.Mvc.ModelBinding.Test/Validation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments