public void AzimuthAddition_Az189PlusDeflNeg15_shouldEqual174() { Double expectedDbl = 174.0; Azimuth az = new Azimuth(); az.setFromDegreesDouble(189.0); Deflection defl = new Deflection(); defl.setFromDegreesDouble(-15.0); Azimuth newAz = az + defl; Double actualDbl = newAz.getAsDegreesDouble(); Assert.AreEqual(expected: expectedDbl, actual: actualDbl, delta: delta); }
public void Deflection_setTo_Pos2_shouldBe_Pos2Degrees() { Deflection defl = new Deflection(); defl.setFromDegreesDouble(2.0); Double expected = 2.0; Double actual = defl.getAsDegreesDouble(); Assert.AreEqual(expected: expected, actual: actual, delta: delta); }