ShipRigTests: the muzzle-on-a-joint refusal now says a thruster emitter may ride one too

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-12 03:58:26 +02:00
commit 1052a445fb

View file

@ -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]