public void SeperationCheck_Track1AndTrack2OnCollisionCourse_LogCalled()
        {
            _myTrackList.Add(_track1);
            _myTrackList.Add(_track2);

            _seperationTracks.SeperationCheck(_myTrackList);

            _logWriterToFile.Received().LogEvent(_track1.Tag, _track2.Tag, _track2.Timestamp);
            _logWriterToConsole.Received().LogEvent(_track1.Tag, _track2.Tag, _track2.Timestamp);
        }
        public void SortTracksInAirspace(List <Track> newTrackList)
        {
            for (int i = 0; i < newTrackList.Count; i++)
            {
                for (int j = 0; j < _currentTrackList.Count; j++)
                {
                    if (newTrackList[i].Tag == _currentTrackList[j].Tag)
                    {
                        _calculateVelocity.CalcVelocity(_currentTrackList[j], newTrackList[i]);
                        _calculateCourse.CalcCourse(_currentTrackList[j], newTrackList[i]);
                    }
                }
            }
            _currentTrackList = newTrackList;

            foreach (var track in _currentTrackList)
            {
                _writer.WriteTrack(track);
            }

            _seperationTracks.SeperationCheck(_currentTrackList);
        }
Beispiel #3
0
        public void SeperationCheck_VerticalSeparationUnder300_LogToFileAndConsole()
        {
            _uut.SeperationCheck(_myList);

            _eventController.Received().seperationsDetected(Arg.Is <List <SeperationEvent> >((x) => x[0].Tag1 == "BIJ515" && x[0].Tag2 == "QWF639"));
        }