public void IsNumberShouldReturnfalseWhenArgIsNonNumeric() { var func = new IsNumber(); var args = FunctionsHelper.CreateArgs("1"); var result = func.Execute(args, _context); Assert.IsFalse((bool)result.Result); }
public void IsNumberWithInvalidArgumentReturnsPoundValue() { var func = new IsNumber(); var parsingContext = ParsingContext.Create(); var args = FunctionsHelper.CreateArgs(); var result = func.Execute(args, parsingContext); Assert.AreEqual(eErrorType.Value, ((ExcelErrorValue)result.Result).Type); }