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 <noreply@anthropic.com>
This commit is contained in:
parent
b481363b9b
commit
dd1031ce6a
1 changed files with 6 additions and 2 deletions
|
|
@ -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<Exception>(() => AssertStandInsLive(missing.Cache));
|
||||
|
|
|
|||
Loading…
Reference in a new issue