private static object Even(List <Expression> p) { var num = (int)Math.Ceiling(p[0]); var addValue = num >= 0 ? 1 : -1; return(XLMath.IsEven(num) ? num : num + addValue); }
public void IsEven() { Assert.IsTrue(XLMath.IsEven(2)); Assert.IsFalse(XLMath.IsEven(3)); }