public void AddNormal() { Coordinate coordinate1 = new GeodeticCoordinate(1.0, 1.0); Coordinate coordinate2 = new GeodeticCoordinate(2.0, 2.0); Coordinate result = new GeodeticCoordinate(3.0, 3.0); Coordinate add = coordinate1.Add(coordinate2); Assert.True(add == result); }
public void AddNullCoordinate2() { Coordinate coordinate1 = new GeodeticCoordinate(1.0, 1.0); Assert.Throws <ArgumentNullException>(() => coordinate1.Add(null)); }