Exemple #1
0
 private void CanTrack(Vector shipHeading, HardPointPosition position, CanTrackResult expected)
 {
     _ship.Heading = shipHeading;
     CanTrack(position, expected);
 }
Exemple #2
0
 private void CanTrack(HardPointPosition position, CanTrackResult expected)
 {
     var hp = new HardPoint(_ship, position);
     Assert.That(hp.CanTrack(_leftTarget), Is.EqualTo(expected.Left), "Can track left");
     Assert.That(hp.CanTrack(_rightTarget), Is.EqualTo(expected.Right), "Can track right");
     Assert.That(hp.CanTrack(_frontTarget), Is.EqualTo(expected.Front), "Can track front");
     Assert.That(hp.CanTrack(_rearTarget), Is.EqualTo(expected.Rear), "Can track rear");
     Assert.That(hp.CanTrack(_sideTarget), Is.EqualTo(expected.LeftTop), "Can track left-top");
 }