public void Convert_NauticalMiles_and_StatuteMiles() { double M_mi = new NauticalMiles(87).To <StatuteMiles>(); // 100.118 double mi_M = new StatuteMiles(115).To <NauticalMiles>(); // 99.9324 Assert.AreEqual(100.118, Math.Round(M_mi, 3)); Assert.AreEqual(99.9323, Math.Round(mi_M, 4)); }
public void Convert_NauticalMiles_and_StatuteMiles() { double M_mi = new NauticalMiles(87).To<StatuteMiles>(); // 100.118 double mi_M = new StatuteMiles(115).To<NauticalMiles>(); // 99.9324 Assert.AreEqual(100.118, Math.Round(M_mi, 3)); Assert.AreEqual(99.9323, Math.Round(mi_M, 4)); }