EW 3 tests: a live quiet subject's reveal stays in the book, so the belief ends by age, not by the book dropping
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5a7ab7944b
commit
cbb4526070
1 changed files with 3 additions and 3 deletions
|
|
@ -1786,7 +1786,7 @@ public sealed partial class ContactRevealTests : IDisposable
|
|||
Assert.Equal(1, o.VisibleEnemies.Count(x => x == e));
|
||||
}
|
||||
|
||||
// The belief outlives the track only as long as a reveal younger than BearingMemory, and goes with the book.
|
||||
// The belief outlives the track only as long as a reveal younger than BearingMemory.
|
||||
[Fact]
|
||||
public void TelemetryEndsWhenTheBearingIsForgotten()
|
||||
{
|
||||
|
|
@ -1806,8 +1806,8 @@ public sealed partial class ContactRevealTests : IDisposable
|
|||
Assert.True(o.IsHostileTo(e), "a young reveal keeps the belief");
|
||||
Assert.Contains(e, o.RememberedHostiles);
|
||||
|
||||
for (var i = 0; i < 100 && o.RevealedSubjects.Contains(e); i++) Tick(.1f);
|
||||
Assert.False(o.RevealedSubjects.Contains(e), "fixture: the book dropped the subject");
|
||||
for (var i = 0; i < 25; i++) Tick(.1f); // 2.5 s: past BearingMemory (2 s); the live quiet subject's reveal stays in the book, old
|
||||
Assert.False(o.ContactOf(e).Detected, "fixture: the bearing is forgotten");
|
||||
Assert.False(o.TryGetTelemetry(e, out _));
|
||||
Assert.False(o.IsHostileTo(e));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue