@@ -118,8 +118,8 @@ public async Task FormatGameStringText_DataRawTo_CTS_CRU_SR_ReturnNewFile()
118118 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
119119 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
120120
121- string newFileContent = File . ReadAllText ( newOutputFile ) ;
122- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_colortextscaling_rs.json" ) ) ;
121+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
122+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_colortextscaling_rs.json" ) ) . ReplaceLineEndings ( " \n " ) ;
123123
124124 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
125125 }
@@ -154,8 +154,8 @@ public async Task FormatGameStringText_DataRawTo_CT_ReturnNewFile()
154154 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
155155 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
156156
157- string newFileContent = File . ReadAllText ( newOutputFile ) ;
158- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_coloredtext_rc_rs_pc_ps.json" ) ) ;
157+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
158+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_coloredtext_rc_rs_pc_ps.json" ) ) . ReplaceLineEndings ( " \n " ) ;
159159
160160 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
161161 }
@@ -190,8 +190,8 @@ public async Task FormatGameStringText_DataRawTo_PT_CRU_SRU_ReturnNewFile()
190190 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
191191 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
192192
193- string newFileContent = File . ReadAllText ( newOutputFile ) ;
194- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_plaintext.json" ) ) ;
193+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
194+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_plaintext.json" ) ) . ReplaceLineEndings ( " \n " ) ;
195195
196196 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
197197 }
@@ -226,8 +226,8 @@ public async Task FormatGameStringText_DataRawTo_PT_CR_SR_ReturnNewFile()
226226 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
227227 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
228228
229- string newFileContent = File . ReadAllText ( newOutputFile ) ;
230- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_plaintext_rc_rs.json" ) ) ;
229+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
230+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_plaintext_rc_rs.json" ) ) . ReplaceLineEndings ( " \n " ) ;
231231
232232 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
233233 }
@@ -262,8 +262,8 @@ public async Task FormatGameStringText_DataPlaintTextTo_CT_CR_SR_ReturnNewFile()
262262 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
263263 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
264264
265- string newFileContent = File . ReadAllText ( newOutputFile ) ;
266- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_plaintext_to_coloredtext_rc_rs.json" ) ) ;
265+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
266+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_plaintext_to_coloredtext_rc_rs.json" ) ) . ReplaceLineEndings ( " \n " ) ;
267267
268268 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
269269 }
@@ -299,8 +299,8 @@ public async Task FormatGameStringText_DataPlaintTextTo_SR_ReturnNewFile()
299299 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
300300 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
301301
302- string newFileContent = File . ReadAllText ( newOutputFile ) ;
303- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_coloredtext_rs.json" ) ) ;
302+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
303+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "herodata_96477_enus_rawtext_to_coloredtext_rs.json" ) ) . ReplaceLineEndings ( " \n " ) ;
304304
305305 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
306306 }
@@ -336,8 +336,8 @@ public async Task FormatGameStringText_DataPlaintTextTo_PT_CR_SR_UpdatedFile()
336336 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
337337 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
338338
339- string newFileContent = File . ReadAllText ( newOutputFile ) ;
340- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "original_herodata_96477_enus_plaintext_self.json" ) ) ;
339+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
340+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "original_herodata_96477_enus_plaintext_self.json" ) ) . ReplaceLineEndings ( " \n " ) ;
341341
342342 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
343343 }
@@ -371,8 +371,8 @@ public async Task FormatGameStringText_GameStringPlaintTextTo_PT_SR_ReturnNewFil
371371 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
372372 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
373373
374- string newFileContent = File . ReadAllText ( newOutputFile ) ;
375- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "gamestrings_96477_enus_rawtext_to_plaintext_rc_rs_pc_ps.json" ) ) ;
374+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
375+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "gamestrings_96477_enus_rawtext_to_plaintext_rc_rs_pc_ps.json" ) ) . ReplaceLineEndings ( " \n " ) ;
376376
377377 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
378378 }
@@ -407,8 +407,8 @@ public async Task FormatGameStringText_GameStringPlaintTextTo_CTS_ReturnNewFile(
407407 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
408408 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
409409
410- string newFileContent = File . ReadAllText ( newOutputFile ) ;
411- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "gamestrings_96477_enus_rawtext_to_colortextscaling.json" ) ) ;
410+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
411+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "gamestrings_96477_enus_rawtext_to_colortextscaling.json" ) ) . ReplaceLineEndings ( " \n " ) ;
412412
413413 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
414414 }
@@ -443,8 +443,8 @@ public async Task FormatGameStringText_GameStringPlainTextScalingNewlineTo_PTSN_
443443 string newOutputFile = Path . Combine ( outputFileDirectory , inputFileName ) ;
444444 File . Exists ( newOutputFile ) . Should ( ) . BeTrue ( ) ;
445445
446- string newFileContent = File . ReadAllText ( newOutputFile ) ;
447- string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "original_gamestrings_96477_enus_plaintextscalingnewlines_rc_rs_self.json" ) ) ;
446+ string newFileContent = File . ReadAllText ( newOutputFile ) . ReplaceLineEndings ( " \n " ) ;
447+ string comparedToText = File . ReadAllText ( Path . Combine ( "TestJsonFiles" , "GameStringTextFormat" , "original_gamestrings_96477_enus_plaintextscalingnewlines_rc_rs_self.json" ) ) . ReplaceLineEndings ( " \n " ) ;
448448
449449 newFileContent . Should ( ) . BeEquivalentTo ( comparedToText ) ;
450450 }
0 commit comments