public void Log2Test(decimal value, decimal expected, decimal tolerance) { tolerance = Helper.GetScaledTolerance(expected, (int)tolerance, true); Assert.That(DecimalEx.Log2(value), Is.EqualTo(expected).Within(tolerance)); }