EW 3 tests: add the Forbid helper the previous commit referenced (8a779b3a does not build)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-17 07:10:54 +02:00
commit 5a7ab7944b

View file

@ -1758,6 +1758,9 @@ public sealed partial class ContactRevealTests : IDisposable
Assert.Equal(hostile, o.IsHostileTo(e));
}
// The zone owner does not permit `e` here. Set directly: Update re-derives the security level from the ship's location.
private static void Forbid(Entity e) => e.PresencePermitted = UniRx.Observable.Return(false).ToReadOnlyReactiveProperty();
// Ruling ew-telemetry-with-the-track: a contact held by a bearing only has no allegiance; it gets one at its first track.
[Fact]
public void ABearingOnlyContactHasNoAllegiance()