Demo Terminus tests: the Pirates fixture carries a name file, as generating zone names needs one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-06 19:39:16 +02:00
commit c7c56e152c

View file

@ -15,7 +15,10 @@ public sealed partial class RunStartTests
private static readonly uint[] DemoSeeds = { 1, 2, 3, 4, 5 };
// The catalog record the demo's protagonist needs, until the shipped catalog has one.
private void AddPirates() => _cache.Upsert(new Faction { Name = "Pirates", ShortName = "Pirates" });
private void AddPirates() => _cache.Upsert(new Faction
{
Name = "Pirates", ShortName = "Pirates", GeonameFile = _cache.RefOf(_cache.GetAll<NameFile>().First())
});
private Galaxy DemoGalaxy(uint seed) => RunStart.Generate(new DemoTerminus(), Inputs(() => seed));