@@ -1117,6 +1117,47 @@ public void Init_GameLaunch_IncludesDistributionPlatform()
11171117 c . Contains ( "\" game_launch\" " ) && c . Contains ( "\" steam\" " ) ) ) ;
11181118 }
11191119
1120+ [ Test ]
1121+ public void Init_LowercasesDistributionPlatform_WhenCallerPassesMixedCase ( )
1122+ {
1123+ var config = MakeConfig ( ) ;
1124+ config . DistributionPlatform = "Steam" ;
1125+ ImmutableAudience . Init ( config ) ;
1126+
1127+ Assert . AreEqual ( "steam" , config . DistributionPlatform ,
1128+ "Init should lowercase mixed-case DistributionPlatform so dashboards aggregate consistently." ) ;
1129+ }
1130+
1131+ [ Test ]
1132+ public void Init_LowercasesDistributionPlatform_WhenCallerPassesAllUpperCase ( )
1133+ {
1134+ var config = MakeConfig ( ) ;
1135+ config . DistributionPlatform = "STEAM" ;
1136+ ImmutableAudience . Init ( config ) ;
1137+
1138+ Assert . AreEqual ( "steam" , config . DistributionPlatform ) ;
1139+ }
1140+
1141+ [ Test ]
1142+ public void Init_LeavesDistributionPlatformUnchanged_WhenAlreadyLowercase ( )
1143+ {
1144+ var config = MakeConfig ( ) ;
1145+ config . DistributionPlatform = "steam" ;
1146+ ImmutableAudience . Init ( config ) ;
1147+
1148+ Assert . AreEqual ( "steam" , config . DistributionPlatform ) ;
1149+ }
1150+
1151+ [ Test ]
1152+ public void Init_LeavesDistributionPlatformNull_WhenNotSet ( )
1153+ {
1154+ var config = MakeConfig ( ) ;
1155+ Assert . IsNull ( config . DistributionPlatform ) ;
1156+ ImmutableAudience . Init ( config ) ;
1157+
1158+ Assert . IsNull ( config . DistributionPlatform ) ;
1159+ }
1160+
11201161 [ Test ]
11211162 public void Init_ConsentNone_DoesNotFireGameLaunch ( )
11221163 {
0 commit comments