public void Tropesphere_Height_Index_1(double pHeight, int Index) { lookups_ = new TroposphereModelLookups(); int lIndex = lookups_.GetHeightIndex(pHeight); Assert.AreEqual(Index, lIndex); }
public void Tropesphere_Calculate_Interpolated_Range_Value(double pHAsKM, int pIndex, int pIndex2, double expected) { TroposphereModelLookups l = new TroposphereModelLookups(); int lHeightIndex = l.GetHeightIndex(pHAsKM); double outcome = l.CalculatedInterpolatedRange(pHAsKM, pIndex, pIndex2, 90); Assert.AreEqual(expected, outcome, 0.0000001); }