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