File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
DocumentFormat.OpenXml.Tests/ofapiTest Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 44using xvml = DocumentFormat . OpenXml . Vml . Spreadsheet ;
55using M = DocumentFormat . OpenXml . Math ;
66using System ;
7-
7+ using System . Globalization ;
88using Xunit ;
99namespace DocumentFormat . OpenXml . Tests
1010{
@@ -402,15 +402,15 @@ public void SingleValueTest()
402402
403403 target . Value = ( float ) 1.0 ;
404404 Assert . True ( target . HasValue ) ;
405- Assert . Equal ( ( ( float ) 1.0 ) . ToString ( ) , target . InnerText ) ;
405+ Assert . Equal ( ( ( float ) 1.0 ) . ToString ( CultureInfo . InvariantCulture ) , target . InnerText ) ;
406406
407407 target . Value = ( float ) 7E7 ;
408408 Assert . True ( target . HasValue ) ;
409- Assert . Equal ( ( ( float ) 7E7 ) . ToString ( ) , target . InnerText ) ;
409+ Assert . Equal ( ( ( float ) 7E7 ) . ToString ( CultureInfo . InvariantCulture ) , target . InnerText ) ;
410410
411411 target . Value = ( float ) 765.43211234E11 ;
412412 Assert . True ( target . HasValue ) ;
413- Assert . Equal ( ( ( float ) 765.43211234E11 ) . ToString ( ) , target . InnerText ) ;
413+ Assert . Equal ( ( ( float ) 765.43211234E11 ) . ToString ( CultureInfo . InvariantCulture ) , target . InnerText ) ;
414414
415415 target . Value = float . NaN ;
416416 Assert . True ( target . HasValue ) ;
You can’t perform that action at this time.
0 commit comments