public void Constructor__CreatesPointWithEmptyPositionAndNullTimestamp() { var target = new GpsPoint(); Assert.Equal(Coordinate.Empty, target.Position); Assert.Null(target.Timestamp); }
public void Constructor_Coordinate_CreatesPointWithPositionAndNullTimestamp() { var target = new GpsPoint(_coordinate); Assert.Equal(_coordinate, target.Position); Assert.Null(target.Timestamp); }
public void Constructor_LonLatElevationTimestamp_CreatesPointWithPositionAndTimestamp() { var timestamp = DateTime.Now; var target = new GpsPoint(_xOrdinate, _yOrdinate, _zOrdinate, timestamp); Assert.Equal(_coordinate, target.Position); Assert.Equal(timestamp, target.Timestamp); }