From 494d7955507aba8642c303988954832483d0d78c Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 3 Oct 2026 20:55:02 +0200 Subject: [PATCH] Pin that generating a galaxy leaves the catalog's faction influence as authored Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ScenarioTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/ScenarioTests.cs b/tests/Aetheria.Shared.Tests/ScenarioTests.cs index c2a4e36b3..cebf564d6 100644 --- a/tests/Aetheria.Shared.Tests/ScenarioTests.cs +++ b/tests/Aetheria.Shared.Tests/ScenarioTests.cs @@ -161,6 +161,16 @@ public sealed partial class RunStartTests Assert.NotEqual(Layout(a), Layout(b)); } + // Generating a galaxy writes nothing a later one reads: a prelude leaves the catalog's faction influence as authored. + [Fact] + public void AGalaxyLeavesTheCatalogsFactionsAsAuthored() + { + var authored = _cache.GetAll().ToDictionary(faction => faction, faction => faction.InfluenceDistance); + RunStart.Generate(new TutorialGalaxy(), Inputs()); + RunStart.Generate(new MainGalaxy(), Inputs()); + Assert.All(authored, pair => Assert.Equal(pair.Value, pair.Key.InfluenceDistance)); + } + // A scenario naming one unknown design admits nothing, not even the parts that built, and names the design. [Fact] public void StagingIsAllOrNothing()