public void TestLengths2DValue() { Assert.AreEqual(10d, SquareLength.FromMeter(10d).Meter, DoubleDelta); Assert.AreEqual(10d, SquareLength.FromMile(10d).Mile, DoubleDelta); Assert.AreEqual(10d, SquareLength.FromSeaMile(10d).SeaMile, DoubleDelta); Assert.AreEqual(10d, SquareLength.FromFeet(10d).Feet, DoubleDelta); Assert.AreEqual(10d, SquareLength.FromYard(10d).Yard, DoubleDelta); Assert.AreEqual(10d, SquareLength.FromAr(10d).Ar, DoubleDelta); Assert.AreEqual(10d, SquareLength.FromHectar(10d).Hectar, DoubleDelta); }
public void TestLengths2DConvert() { Assert.AreEqual(10d, SquareLength.FromAr(1000d).Hectar, DoubleDelta); Assert.AreEqual(100d, SquareLength.FromMeter(1000d).GetHectar(UnitPrefix.Milli), DoubleDelta); }