public void CheckCollision_VelocityAndCourseAt0Degrees50metersPrSecond_IsCorrect() { DateTime dateTime1 = new DateTime(2018, 06, 10, 10, 18, 18); DateTime dateTime2 = new DateTime(2018, 06, 10, 10, 18, 20); // der er valgt fly som ligger indenfor flyverummet Track _flight1 = new Track { Tag = "HEJMEDDIG", XCoordinate = 12000, YCoordinate = 12000, Timestamp = dateTime1 }; List <ITrack> _old = new List <ITrack> { _flight1 }; Track _flight2 = new Track { Tag = "HEJMEDDIG", XCoordinate = 12000, YCoordinate = 12100, Altitude = 19987, Timestamp = dateTime2 }; List <ITrack> _new = new List <ITrack> { _flight2 }; _velocityCalc.CalculateVelocity(_old, _new); _courseCalc.CalculateCourse(_old, _new); _collision.Received().TrackComparison(_new); }
public void FilterTracks_Tracksfiltered_Correct() { Track _flight1 = new Track { Tag = "HEJMEDDIG", XCoordinate = 12000, YCoordinate = 12000, }; List <ITrack> _flightList = new List <ITrack> { _flight1 }; _compare.UpdateTracks(_flightList); collision.Received().TrackComparison(_flightList); }