mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-11-03 21:02:06 +01:00
Take code page 1250 in the trainset save tests from LegacyText
The tests asked Encoding for it before anything had registered the code pages. That held only when another test had made an InMemoryFileSystem first, so the class failed when it ran first, as it did on Linux in CI.
This commit is contained in:
@@ -23,7 +23,9 @@ public class SceneryTrainsetSaveTests
|
||||
"endtrainset\r\n" +
|
||||
"// koniec pliku z polską literą: żółw\r\n";
|
||||
|
||||
private static Encoding Cp1250 => Encoding.GetEncoding(1250);
|
||||
// The application's own, which registers the code pages first; this class may be
|
||||
// the first to need them, before any InMemoryFileSystem exists.
|
||||
private static Encoding Cp1250 => LegacyText.CodePage1250;
|
||||
|
||||
private static (InMemoryFileSystem Files, Scenery Scenery, SaveSceneryTrainset Save) Setup(string scn) =>
|
||||
Setup(Cp1250.GetBytes(scn));
|
||||
|
||||
Reference in New Issue
Block a user