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));
        }
Пример #2
0
 public double ConvertFromBase(double value)
 {
     return(FromBase.Convert(value, Exponent));
 }