示例#1
0
 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);
 }
示例#2
0
        public void Azimuth_1_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);
        }