LockWarningTests: a paint waiting in the inbox does not outlive a deactivation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 19:49:56 +02:00
commit 90f1775cb9

View file

@ -252,5 +252,12 @@ public sealed class LockWarningTests : IDisposable
b.Activate();
b.Update(.01f);
Assert.Empty(b.IncomingLocks); // the paint received while inactive was never stored
// A paint still waiting in the inbox when the ship deactivates does not survive to the next activation.
Aim(locker, b, .5f);
b.Deactivate();
b.Activate();
b.Update(.01f);
Assert.Empty(b.IncomingLocks);
}
}