Name the gear-room reading GearCellsLeft: StockRoom is a name the role-bay cut retired

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
soul 2026-12-03 06:13:16 +01:00
commit fb184066b6
3 changed files with 5 additions and 5 deletions

View file

@ -195,7 +195,7 @@ public sealed class StationServicesTests : IDisposable
Assert.Equal(5, pawned);
Assert.Equal(5 * StationServices.SellPrice(_items, Mint("Gun")), credits);
Assert.Equal(0, StationServices.StockRoom(station));
Assert.Equal(0, StationServices.GearCellsLeft(station));
Assert.Equal(8, stock.Occupancy.Cast<ItemInstance>().Count(held => held != null));
Assert.Contains(held[pawned], from.Cargo.Keys);
}
@ -253,7 +253,7 @@ public sealed class StationServicesTests : IDisposable
var others = StationWants.RoleBays(station, BayRole.Stock).Skip(1).ToArray();
while (full.TryStore(Mint("Gun"))) { }
// Three Crates, 48 cells: the stock share is 24, and the full bay spends 16 of it, so the sale lands in another Crate.
Assert.Equal(8, StationServices.StockRoom(station));
Assert.Equal(8, StationServices.GearCellsLeft(station));
var credits = 0;
Assert.True(StationServices.TrySell(from, station, gun, ref credits));