Make NukeOpsTest list RuleGrids on failure (#35873)
This commit is contained in:
@@ -152,10 +152,14 @@ public sealed class NukeOpsTest
|
||||
Assert.That(roleSys.MindGetAllRoleInfo(mindCrew).Any(x => nukeroles.Contains(x.Prototype)), Is.False);
|
||||
}
|
||||
|
||||
var ruleGridComps = entMan.AllComponents<RuleGridsComponent>();
|
||||
Assert.That(ruleGridComps, Has.Length.EqualTo(1),
|
||||
$"Unexpected RuleGrid(s) detected! {string.Join(',', ruleGridComps.Select(e => server.EntMan.ToPrettyString(e.Uid)))}");
|
||||
|
||||
// The game rule exists, and all the stations/shuttles/maps are properly initialized
|
||||
var rule = entMan.AllComponents<NukeopsRuleComponent>().Single();
|
||||
var ruleComp = rule.Component;
|
||||
var gridsRule = entMan.AllComponents<RuleGridsComponent>().Single().Component;
|
||||
var gridsRule = ruleGridComps.Single().Component;
|
||||
foreach (var grid in gridsRule.MapGrids)
|
||||
{
|
||||
Assert.That(entMan.EntityExists(grid));
|
||||
|
||||
Reference in New Issue
Block a user