PiratesRecordTests: a Pirates rebrand unit titles and brands as its own product through the merged lot-product code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-08 22:50:12 +02:00
commit 544807bb85

View file

@ -64,4 +64,20 @@ public sealed partial class RunStartTests
.ToArray();
Assert.Empty(twice);
}
// A unit minted from a Pirates rebrand titles and brands as that rebrand: the lot records its product, so the
// emoji name shows although the same design is also sold by its original maker.
[Fact]
public void PiratesRebrandUnitsTitleAsTheirOwnProduct()
{
var pirates = ShippedPirates();
foreach (var product in PiratesProducts())
{
var unit = _items.CreateInstance(_items.CreateLot(product));
Assert.Equal(product.Name, _items.Title(unit));
var brand = _items.Brand((CraftedItemInstance) unit);
Assert.Same(product, brand.Product);
Assert.Same(pirates, brand.Maker);
}
}
}