SolutionTests: compare the subject by reference so a failing assert does not format the entity graph
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7e400543b7
commit
847e5eabf2
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ public sealed partial class FireControlCut124Tests
|
|||
Assert.True(solution.Free);
|
||||
Assert.True(FireControl.ArcPermitsFire(e.Weapon, e.Shooter));
|
||||
Near(float2(0, 1), solution.Direction);
|
||||
Assert.Same(e.Target, solution.Subject);
|
||||
Assert.True(ReferenceEquals(e.Target, solution.Subject), "a designated target out of arc is still the solution's subject");
|
||||
Assert.Equal(0f, FireControl.HitProbability(e.Weapon, e.Shooter, e.Target));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue