Exemple #1
0
        public void IsTextShouldReturnFalseWhenFirstArgIsNotAString()
        {
            var args   = FunctionsHelper.CreateArgs(1);
            var func   = new IsText();
            var result = func.Execute(args, _context);

            Assert.IsFalse((bool)result.Result);
        }
Exemple #2
0
        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);
        }