public void CalculateDegrees() { _driver.OnMovementInAirspaceDetected(_driver, new TrackEventArgs() { Track = _track2 }); Assert.That((_track2.Course), Is.EqualTo(_expectedCourse)); }
public void CalculateVelocity() { _driver.OnMovementInAirspaceDetected(_driver, new TrackEventArgs() { Track = _track2 }); Assert.That(_track2.Velocity, Is.EqualTo(621)); }
public void OnMovementInAirspaceDetected_PlaneIsNotAlreadyInAirspace_PlaneTrackGetsAddedToAirSpace() { _uut.OnMovementInAirspaceDetected(this, new TrackEventArgs() { Track = _track }); Assert.That(_airspace.PlanesInAirspace.ContainsKey(_track.Tag)); }