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:
parent
162e60889d
commit
544807bb85
1 changed files with 16 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue