SignatureTests: the one-view check fails by assertion, not by a test-host abort (Assert.Same formatted the entity graph)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-11 13:24:52 +02:00
commit f30c3550ab

View file

@ -432,7 +432,7 @@ public sealed class SignatureTests : IDisposable
var r = Build(Armament.None, 0f, null);
var view = r.Ship.VisibilitySources;
Assert.False(view is Dictionary<object, Signature>);
Assert.Same(view, r.Ship.VisibilitySources);
Assert.True(ReferenceEquals(view, r.Ship.VisibilitySources), "one view object per entity"); // not Assert.Same: its failure message formats the entity graph and aborts the test host
Assert.Throws<NotSupportedException>(() => ((IDictionary<object, Signature>) view)[r.Ship] = new Signature(SignatureChannel.Thermal, 1f, null));
}