From 22dba843a5e471c180655afe48a368363b328928 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 05:03:02 +0200 Subject: [PATCH] AShipHullWithoutATopSpeedIsRefused: the hull carries an unrelated behavior, so a rule that counts any behavior fails Survivor of the top-speed-any-behavior-counts hand mutant: the cleared fixture hull held no behavior at all. Test-only; builds. Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ShipValidationTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Aetheria.Shared.Tests/ShipValidationTests.cs b/tests/Aetheria.Shared.Tests/ShipValidationTests.cs index 928598b00..6af02ab03 100644 --- a/tests/Aetheria.Shared.Tests/ShipValidationTests.cs +++ b/tests/Aetheria.Shared.Tests/ShipValidationTests.cs @@ -24,6 +24,7 @@ public sealed class ShipValidationTests var ship = ShipAuthoringTests.Fixture(); ship.Hull.HullType = type; ship.Hull.Behaviors.Clear(); + ship.Hull.Behaviors.Add(new CapacitorData()); // a hull with other behaviors still has no top speed if (accepted) ship.Validate(); else Assert.Contains("top speed", Assert.Throws(() => ship.Validate()).Message); }