public void GetData_2Segment3PointsInXml_3Points()
 {
     setUpFileManagerWithText
          (
          @"<gpx><trk>
             <trkseg>
                 <trkpt lat = ""40.1"" lon = ""30.23"">
                     <ele>4600.5</ele><time>2011-07-20T06:19:57Z</time>
                 </trkpt>
                 <trkpt lat = ""40.1"" lon = ""30.23"">
                     <ele>4600.5</ele><time>2011-07-20T06:19:57Z</time>
                 </trkpt>
             </trkseg>
             <trkseg>
                 <trkpt lat = ""40.1"" lon = ""30.23"">
                     <ele>4600.5</ele><time>2011-07-20T06:19:57Z</time>
                 </trkpt>
             </trkseg>
          </trk></gpx>"
          );
     var res = new GpxFileReader("filePath").GetData();
     Assert.AreEqual(3, res.Count());
 }
 public void GetData_OnePointInXml_OneCorrectPoint()
 {
     setUpFileManagerWithText
         (
         @"<gpx><trk>
             <trkseg>
                 <trkpt lat = ""40.1"" lon = ""30.23"">
                     <ele>4600.5</ele><time>2011-07-20T06:19:57Z</time>
                 </trkpt>
             </trkseg>
          </trk></gpx>"
         );
     var res = new GpxFileReader("filePath").GetData();
     Assert.AreEqual(1, res.Count());
     Assert.AreEqual(res.First(), new GeoData()
     {
             Latitude = 40.1,
             Longitude = 30.23,
             Altitude = 4600.5,
             CreatingDate = new DateTime(2011, 07, 20, 6, 19, 57)}
         );
 }