public void IsErrorShouldReturnFalseIfArgIsNotAnError() { var args = FunctionsHelper.CreateArgs("A", 1); var func = new IsError(); var result = func.Execute(args, _context); Assert.IsFalse((bool)result.Result); }
public void IsErrorShouldReturnTrueIfArgIsAnErrorCode() { var args = FunctionsHelper.CreateArgs(ExcelErrorValue.Parse("#DIV/0!")); var func = new IsError(); var result = func.Execute(args, _context); Assert.IsTrue((bool)result.Result); }