public void Azimuth1_30_addDeflection_Pos2_15_shouldYieldNewAzimuth_3_45() { Azimuth anAzimuth = new Azimuth(); anAzimuth.setFromDegreesMinutesSeconds(1, 30, 0); Deflection aDefl = new Deflection(); aDefl.setFromDegreesMinutesSeconds(2, 15, 0); Double expected = 3.75; Azimuth newAz = anAzimuth + aDefl; Double actual = newAz.getAsDegreesDouble(); Assert.AreEqual(expected: expected, actual: actual, delta: delta); }
public void Azimuth_setToDMS183__29__29_5_shouldResultIn_Angle() { Azimuth anAzimuth = new Azimuth(); anAzimuth.setFromDegreesMinutesSeconds(183, 29, 29.5); Double expected = 183.4915277778; Double actual = anAzimuth.getAsDegreesDouble(); Assert.AreEqual(expected: expected, actual: actual, delta: delta); }