Ejemplo n.º 1
0
        public void IsNumberShouldReturnfalseWhenArgIsNonNumeric()
        {
            var func   = new IsNumber();
            var args   = FunctionsHelper.CreateArgs("1");
            var result = func.Execute(args, _context);

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