From dd1031ce6ac0dac7a5957f51daa4ec1e1eb1aa8b Mon Sep 17 00:00:00 2001 From: soul Date: Fri, 23 Oct 2026 18:16:48 +0200 Subject: [PATCH] StationKindTests: a maker-less or Price 0 station hull is unreachable by the draw; the stand-in check is exercised on Zhestokost Co-Authored-By: Claude Sonnet 5.5 --- tests/Aetheria.Shared.Tests/StationKindTests.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/StationKindTests.cs b/tests/Aetheria.Shared.Tests/StationKindTests.cs index d568f2d1e..2082a3719 100644 --- a/tests/Aetheria.Shared.Tests/StationKindTests.cs +++ b/tests/Aetheria.Shared.Tests/StationKindTests.cs @@ -456,7 +456,11 @@ public sealed class StationKindTests : IDisposable { var world = World.Make(this, zenithOffered: false); world.Sell(world.Au, "mining"); - world.Unsellable(world.Sell(world.Au, "shipyard"), unsetMaker); + var unsold = world.Sell(world.Au, "shipyard"); + world.Unsellable(unsold, unsetMaker); + // No hull draw reaches it: a station of its kind cannot be generated for anyone. + Assert.Null(world.Generator(world.Au).GenerateStationLoadout(Kind("shipyard"))); + Assert.Null(world.Generator(world.Lucent).GenerateStationLoadout(Kind("shipyard"))); world.StandIn("mining", world.Lucent, "shipyard"); world.StandIn("mining", world.Zh, "shipyard"); @@ -603,7 +607,7 @@ public sealed class StationKindTests : IDisposable var missing = World.Make(this, zenithOffered: false); missing.Sell(missing.Au, "mining"); - missing.StandIn("shipyard", missing.Lucent, "mining"); + missing.StandIn("shipyard", missing.Zh, "mining"); var kind = missing.Cache.Get(Kind("shipyard")); kind.StandIns[0].Kind = Kind("no-such-kind"); Assert.ThrowsAny(() => AssertStandInsLive(missing.Cache));