@@ -15,7 +15,7 @@ public class ParserExtensionsTests {
1515 [ InlineData ( true , true , false , 0 , 1 ) ]
1616 public void CorrectModDependentBranchesAreUsed ( bool wtwsms , bool tfe , bool vanillaCk3 , int expectedValue1 ,
1717 int expectedValue2 ) {
18- var ck3ModFlags = new Dictionary < string , bool > { [ "wtwsms" ] = wtwsms , [ "tfe" ] = tfe , [ "vanilla_ck3" ] = vanillaCk3 , } ;
18+ var ck3ModFlags = new OrderedDictionary < string , bool > { [ "wtwsms" ] = wtwsms , [ "tfe" ] = tfe , [ "vanilla_ck3" ] = vanillaCk3 , } ;
1919
2020 var blocReader = new BufferedReader (
2121 """
@@ -63,7 +63,7 @@ public void ExceptionIsThrownWhenUnknownModFlagIsEncounteredInInterpolatedExpres
6363 """ ) ;
6464
6565 int ? value = null ;
66- Dictionary < string , bool > modFlags = new ( ) ;
66+ OrderedDictionary < string , bool > modFlags = [ ] ;
6767
6868 var parser1 = new Parser ( ) ;
6969 parser1 . RegisterModDependentBloc ( modFlags ) ;
@@ -86,7 +86,7 @@ public void VariableConditionResolvesToFalseWhenVariableIsNotDefined() {
8686 """ ) ;
8787
8888 int ? value = null ;
89- Dictionary < string , bool > modFlags = new ( ) ;
89+ OrderedDictionary < string , bool > modFlags = new ( ) ;
9090
9191 var parser1 = new Parser ( ) ;
9292 parser1 . RegisterModDependentBloc ( modFlags ) ;
@@ -97,7 +97,7 @@ public void VariableConditionResolvesToFalseWhenVariableIsNotDefined() {
9797
9898 [ Fact ]
9999 public void ElseIfAfterElseIsIgnored ( ) {
100- Dictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
100+ OrderedDictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
101101
102102 var blocReader = new BufferedReader (
103103 """
@@ -123,7 +123,7 @@ public void ElseIfAfterElseIsIgnored() {
123123
124124 [ Fact ]
125125 public void ElseAfterElseIsIgnored ( ) {
126- Dictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
126+ OrderedDictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
127127
128128 var blocReader = new BufferedReader (
129129 """
@@ -149,7 +149,7 @@ public void ElseAfterElseIsIgnored() {
149149
150150 [ Fact ]
151151 public void ElseIfWithoutPrecedingIfIsIgnored ( ) {
152- Dictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
152+ OrderedDictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
153153
154154 var blocReader = new BufferedReader (
155155 """
@@ -171,7 +171,7 @@ public void ElseIfWithoutPrecedingIfIsIgnored() {
171171
172172 [ Fact ]
173173 public void ElseWithoutPrecedingIfIsIgnored ( ) {
174- Dictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
174+ OrderedDictionary < string , bool > ck3ModFlags = new ( ) { { "wtwsms" , false } , { "tfe" , true } , { "vanilla_ck3" , false } , } ;
175175
176176 var blocReader = new BufferedReader (
177177 """
0 commit comments