private static void VerifyUnitConversion(IUnitConversion conversion, int exponent, double result) { Assert.That(conversion, Is.Not.Null); var actual = conversion.Convert(BaseConversionStartValue, exponent); Assert.That(actual, Is.EqualTo(result).Within(Epsilon)); }
public double ConvertFromBase(double value) { return(FromBase.Convert(value, Exponent)); }