Esempio n. 1
0
        public void TestHandleTrackUpdate_EventSent_ConsoleWritesLineAny()
        {
            //TracksUpdatedEventArgs sentArgs = new TracksUpdatedEventArgs(_tracks, _track);
            _tm.HandleTrack(_track, airspace);

            _console.Received().WriteLine(Arg.Any <string>());
        }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 public void ReceiverOnTransponderDataReady(object sender, RawTransponderDataEventArgs e)
 {
     foreach (var data in e.TransponderData)
     {
         var track = _formatter.RecieveTrack(data);
         _manager.HandleTrack(track, _airspace);
     }
 }
Esempio n. 4
0
 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);
     }
 }
Esempio n. 5
0
        public void testHandleTrack_TrackOutsideAirspace_NothingChanged()
        {
            _uut.HandleTrack(_trackOutside, _airspace);

            Assert.That(_uut.Tracks.Count, Is.EqualTo(0));
        }