public void TestHandleTrackUpdate_EventSent_ConsoleWritesLineAny() { //TracksUpdatedEventArgs sentArgs = new TracksUpdatedEventArgs(_tracks, _track); _tm.HandleTrack(_track, airspace); _console.Received().WriteLine(Arg.Any <string>()); }
public void ReceiverOnTransponderDataReady_HandleTrack_TrackIsOutOfAirspace() { track = new Track("B837", 0, 0, 0, DateTime.Now); _tm.HandleTrack(track, airspace); Assert.That(_tm.Tracks.Count, Is.EqualTo(0)); }
public void ReceiverOnTransponderDataReady(object sender, RawTransponderDataEventArgs e) { foreach (var data in e.TransponderData) { var track = _formatter.RecieveTrack(data); _manager.HandleTrack(track, _airspace); } }
private void ReceiverOnTransponderDataReady(object sender, RawTransponderDataEventArgs e) { // saves and updates for each recieved track/dataset foreach (var data in e.TransponderData) { var track = _formatter.RecieveTrack(data); _manager.HandleTrack(track); } }
public void testHandleTrack_TrackOutsideAirspace_NothingChanged() { _uut.HandleTrack(_trackOutside, _airspace); Assert.That(_uut.Tracks.Count, Is.EqualTo(0)); }