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 55using xvml = DocumentFormat . OpenXml . Vml . Spreadsheet ;
66using M = DocumentFormat . OpenXml . Math ;
77using System ;
8-
8+ using System . Globalization ;
99using Xunit ;
1010namespace DocumentFormat . OpenXml . Tests
1111{
@@ -350,15 +350,15 @@ public void SingleValueTest()
350350
351351 target . Value = ( float ) 1.0 ;
352352 Assert . True ( target . HasValue ) ;
353- Assert . Equal ( ( ( float ) 1.0 ) . ToString ( ) , target . InnerText ) ;
353+ Assert . Equal ( ( ( float ) 1.0 ) . ToString ( CultureInfo . InvariantCulture ) , target . InnerText ) ;
354354
355355 target . Value = ( float ) 7E7 ;
356356 Assert . True ( target . HasValue ) ;
357- Assert . Equal ( ( ( float ) 7E7 ) . ToString ( ) , target . InnerText ) ;
357+ Assert . Equal ( ( ( float ) 7E7 ) . ToString ( CultureInfo . InvariantCulture ) , target . InnerText ) ;
358358
359359 target . Value = ( float ) 765.43211234E11 ;
360360 Assert . True ( target . HasValue ) ;
361- Assert . Equal ( ( ( float ) 765.43211234E11 ) . ToString ( ) , target . InnerText ) ;
361+ Assert . Equal ( ( ( float ) 765.43211234E11 ) . ToString ( CultureInfo . InvariantCulture ) , target . InnerText ) ;
362362
363363 target . Value = float . NaN ;
364364 Assert . True ( target . HasValue ) ;
You can’t perform that action at this time.
0 commit comments