Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
NicEastvillage committed Feb 9, 2025
1 parent 5ba2a84 commit 7897146
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions RLBotCSTests/ConfigValidatorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ public void DefaultIsValid()
MatchConfigurationT mc = ConfigParser.LoadMatchConfig("TestTomls/default.toml");
Assert.IsTrue(ConfigValidator.Validate(mc));
}

[TestMethod]
public void OverridesAreValid()
{
MatchConfigurationT mc = ConfigParser.LoadMatchConfig("TestTomls/overrides.toml");
Assert.IsTrue(ConfigValidator.Validate(mc));
}
}

[TestMethod]
public void UnknownLauncherArg()
{
Expand All @@ -33,21 +33,20 @@ public void UnknownLauncherArg()
mc.LauncherArg = "legendary";
Assert.IsTrue(ConfigValidator.Validate(mc));
}

[TestMethod]
public void EmptyAgentIds()
{
MatchConfigurationT mc = ConfigParser.LoadMatchConfig("TestTomls/empty_agents.toml");
Assert.IsFalse(ConfigValidator.Validate(mc));
}


[TestMethod]
public void MultipleHumans()
{
MatchConfigurationT mc = ConfigParser.LoadMatchConfig("TestTomls/multi_human.toml");
Assert.IsFalse(ConfigValidator.Validate(mc));

// Otherwise ok
MatchConfigurationT mc2 = ConfigParser.LoadMatchConfig("TestTomls/multi_human.toml");
mc2.PlayerConfigurations[0].Variety = PlayerClassUnion.FromPsyonix(new PsyonixT());
Expand Down

0 comments on commit 7897146

Please sign in to comment.