Esempio n. 1
0
        public void File_Format_Compare_Distance()
        {
            // ARRANGE
            GeoFile tcxConversion = tcxTrackFile.ToGeoFile();
            GeoFile gpxConversion = gpxTrackFile.ToGeoFile();

            // ACT
            Double tcxDistance = Math.Round(tcxConversion.Routes[0].Points.CalculateTotalDistance(), 0);
            Double gpxDIstance = Math.Round(gpxConversion.Routes[0].Points.CalculateTotalDistance(), 0);

            // ASSERT
            tcxDistance.Should().Be(gpxDIstance);
        }
Esempio n. 2
0
        public void Track_Compare_ToGeoFile_Conversion()
        {
            // ARRANGE
            Int32 origionalCount   = 0;
            Int32 transformedCount = 0;

            // ACT
            origionalCount   = tcxTrackFile.Activities.Activity[0].ToCoords().Count; // Count of origional
            transformedCount = tcxTrackFile.ToGeoFile().Routes[0].Points.Count;      // Do conversion and count

            // ASSERT
            origionalCount.Should().Be(transformedCount);
        }