From 61e66dac35c069f6d2f81e5c888b36545842c7e2 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 15 Oct 2026 01:52:44 +0200 Subject: [PATCH] Layout-aim tests: AddWing picks the guns by design name (the hull is equipment too) Fixes 3098ff69, whose two Wing tests did not build their fixture. Test-only. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/LayoutAimTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/LayoutAimTests.cs b/tests/Aetheria.Shared.Tests/LayoutAimTests.cs index 32048a232..072942184 100644 --- a/tests/Aetheria.Shared.Tests/LayoutAimTests.cs +++ b/tests/Aetheria.Shared.Tests/LayoutAimTests.cs @@ -58,8 +58,8 @@ public sealed partial class ContactRevealTests Assert.True(ship.TryEquip(Make("Gun"), new int2(0, 0))); Assert.True(ship.TryEquip(Make("Gun"), new int2(2, 3))); Place(ship, position); - var gunA = ship.Equipment.Single(i => i.Position.x == 0); - var gunB = ship.Equipment.Single(i => i.Position.x == 2); + var gunA = ship.Equipment.Single(i => i.Data.Name == "Gun" && i.Position.x == 0); + var gunB = ship.Equipment.Single(i => i.Data.Name == "Gun" && i.Position.x == 2); Assert.True(gunA.Hardpoint != null && gunB.Hardpoint != null && !ReferenceEquals(gunA.Hardpoint, gunB.Hardpoint), "fixture: each gun sits on its own mount"); return (ship, gunA, gunB); }