コード例 #1
0
 public void TestExpeditionCalculation()
 {
     Assert.AreEqual(9.4901418935110359d, (Expedition.FromGravity(10d) - Expedition.FromMetersPerSquareSecond(5d)).Gravity, DoubleDelta);
     Assert.AreEqual(10.509858106489d, (Expedition.FromGravity(10d) + Expedition.FromMetersPerSquareSecond(5d)).Gravity, DoubleDelta);
 }
コード例 #2
0
 public void TestExpeditionValue()
 {
     Assert.AreEqual(10d, Expedition.FromGravity(10d).Gravity, DoubleDelta);
     Assert.AreEqual(10d, Expedition.FromMetersPerSquareSecond(10d).MetersPerSquareSecond, DoubleDelta);
 }