예제 #1
0
        public void TrackData_FormatData_CorrectStringIsReturned()
        {
            string Tag     = uut.Tag;
            double x       = uut.CurrentXcord;
            double y       = uut.CurrentYcord;
            double z       = uut.CurrentZcord;
            double horzVel = uut.CurrentHorzVel;
            double course  = uut.CurrentCourse;

            string expectedString = $"{Tag} - ( {x}, {y}, {z}) - Speed: {horzVel} m/s - Course: {course} degrees";

            Assert.That(() => uut.FormatData().Equals(expectedString));
        }
예제 #2
0
 public string RenderTrack(TrackData trackData)
 {
     _consoleOutput.Print(trackData.FormatData());
     return(trackData.FormatData());
 }