From 544807bb858ae37a711e998adf7eb77a05731673 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 8 Oct 2026 22:50:12 +0200 Subject: [PATCH] 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 --- .../Aetheria.Shared.Tests/PiratesRecordTests.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/Aetheria.Shared.Tests/PiratesRecordTests.cs b/tests/Aetheria.Shared.Tests/PiratesRecordTests.cs index 7a865d1e4..9d9b79056 100644 --- a/tests/Aetheria.Shared.Tests/PiratesRecordTests.cs +++ b/tests/Aetheria.Shared.Tests/PiratesRecordTests.cs @@ -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); + } + } }