File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
test/Spring/Spring.Core.Tests/Globalization/Formatters Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ public void ParseUsingDefaults()
128
128
Assert . AreEqual ( - 1234.56 , fmt . Parse ( "-1.234,56 din." ) ) ;
129
129
}
130
130
131
- else if ( CultureInfoUtils . OperatingSystemIsAtLeastWindows10Build10586 )
131
+ else if ( CultureInfoUtils . OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils . ClrIsVersion4OrLater )
132
132
{
133
133
Assert . AreEqual ( 1234 , fmt . Parse ( "1.234 RSD" ) ) ;
134
134
Assert . AreEqual ( - 1234 , fmt . Parse ( "-1.234 RSD" ) ) ;
@@ -176,7 +176,7 @@ public void FormatUsingCustomSettings()
176
176
fmt . PositivePattern = 1 ;
177
177
fmt . CurrencySymbol = "din" ;
178
178
179
- if ( CultureInfoUtils . OperatingSystemIsAtLeastWindows10Build10586 )
179
+ if ( CultureInfoUtils . OperatingSystemIsAtLeastWindows10Build10586 && CultureInfoUtils . ClrIsVersion4OrLater )
180
180
{
181
181
Assert . AreEqual ( "1.234din" , fmt . Format ( 1234 ) ) ;
182
182
Assert . AreEqual ( "1.235din" , fmt . Format ( 1234.56 ) ) ;
You can’t perform that action at this time.
0 commit comments