Example #1
0
        public void UpperShouldReturnUpperCaseString()
        {
            var func   = new Upper();
            var result = func.Execute(FunctionsHelper.CreateArgs("abc"), _parsingContext);

            Assert.AreEqual("ABC", result.Result);
        }
Example #2
0
        public void UpperWithInvalidArgumentReturnsPoundValue()
        {
            var func   = new Upper();
            var args   = FunctionsHelper.CreateArgs();
            var result = func.Execute(args, this.ParsingContext);

            Assert.AreEqual(eErrorType.Value, ((ExcelErrorValue)result.Result).Type);
        }