RigBrandTests: each rig is staged under eight seeds, so a pin is told from a lucky draw
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
66aee3cf0e
commit
98337213a4
1 changed files with 16 additions and 11 deletions
|
|
@ -11,21 +11,26 @@ public sealed partial class RunStartTests
|
|||
private IEnumerable<string> FittedBrands(Entity entity, string design) =>
|
||||
entity.Equipment.Where(item => _items.GetData(item.EquippableItem).Name == design).Select(item => ProductOf(item.EquippableItem));
|
||||
|
||||
// Each rig is staged under eight seeds: an open design would draw its brand from the seed, so a pin that holds under
|
||||
// all of them is a pin, not a draw that happened to land on the same product.
|
||||
[Fact]
|
||||
public void TheRigsKeepTheirBrands()
|
||||
{
|
||||
var pursuit = Launch(new Pursuit(), Inputs(() => GalaxySeed));
|
||||
Assert.Empty(pursuit.failures);
|
||||
Assert.Equal(new[] { "parting gift" }, FittedBrands(pursuit.staged.Player, "Mine Launcher"));
|
||||
Assert.Equal(new[] { "Leonid" }, FittedBrands(pursuit.staged.Player, "Swarm Rocket Pod"));
|
||||
for (uint seed = 1; seed <= 8; seed++)
|
||||
{
|
||||
var pursuit = Launch(new Scripted(false, new Pursuit().Stage, seed * 7919));
|
||||
Assert.Empty(pursuit.failures);
|
||||
Assert.Equal(new[] { "parting gift" }, FittedBrands(pursuit.staged.Player, "Mine Launcher"));
|
||||
Assert.Equal(new[] { "Leonid" }, FittedBrands(pursuit.staged.Player, "Swarm Rocket Pod"));
|
||||
|
||||
var duel = Launch(new Duel(), Inputs(() => GalaxySeed));
|
||||
Assert.Empty(duel.failures);
|
||||
var rival = Assert.Single(duel.staged.Entities);
|
||||
Assert.Equal(new[] { "Spectra" }, Held(rival).Select(item => _items.Brand(item).Product.Name));
|
||||
var duel = Launch(new Scripted(false, new Duel().Stage, seed * 7919));
|
||||
Assert.Empty(duel.failures);
|
||||
var rival = Assert.Single(duel.staged.Entities);
|
||||
Assert.Equal(new[] { "Spectra" }, Held(rival).Select(item => _items.Brand(item).Product.Name));
|
||||
|
||||
var arcs = Launch(new Arcs(), Inputs(() => GalaxySeed));
|
||||
Assert.Empty(arcs.failures);
|
||||
Assert.Equal(new[] { "🫳🔫" }, FittedBrands(arcs.staged.Player, "Autocannon"));
|
||||
var arcs = Launch(new Scripted(false, new Arcs().Stage, seed * 7919));
|
||||
Assert.Empty(arcs.failures);
|
||||
Assert.Equal(new[] { "🫳🔫" }, FittedBrands(arcs.staged.Player, "Autocannon"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue