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 Deflection_setTo_neg5__18__29_5() { Deflection aDeflection = new Deflection(); aDeflection.setFromDegreesMinutesSeconds(-5, 18, 29.5); Double expected = -5.308194444444; Double actual = aDeflection.getAsDegreesDouble(); Assert.AreEqual(expected: expected, actual: actual, delta: delta); }