From 1052a445fb363c117391df7924f59203459eb5af Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 03:58:26 +0200 Subject: [PATCH] ShipRigTests: the muzzle-on-a-joint refusal now says a thruster emitter may ride one too Co-Authored-By: Claude Opus 5.5 --- tests/Aetheria.Shared.Tests/ShipRigTests.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/Aetheria.Shared.Tests/ShipRigTests.cs b/tests/Aetheria.Shared.Tests/ShipRigTests.cs index ada408fc9..a255e8c68 100644 --- a/tests/Aetheria.Shared.Tests/ShipRigTests.cs +++ b/tests/Aetheria.Shared.Tests/ShipRigTests.cs @@ -162,7 +162,7 @@ public sealed class ShipRigTests : IDisposable } [Fact] - public void AJointRidesOnlyAWeaponMountThatNamesARealJoint() + public void AJointRidesOnlyAWeaponMountOrAThrusterEmitterThatNamesARealJoint() { var ship = Armed("ghost"); Assert.Contains("names an unknown joint", Refusal(ship)); @@ -170,7 +170,10 @@ public sealed class ShipRigTests : IDisposable ship = Armed("j"); ship.Visual.Joints.Add(Joint("j", null, (Up, -180f, 180f))); ship.Visual.Anchors.Single(anchor => anchor.Id == "g0.muzzle").Joint = "j"; - Assert.Contains("only a weapon mount rides one", Refusal(ship)); + Assert.Contains("only a weapon mount or a thruster emitter rides one", Refusal(ship)); + + var thruster = Thrusting((null, 90f, "ghost")); + Assert.Contains("thruster-emitter anchor t0 names an unknown joint", Refusal(thruster)); } [Fact]