示例#1
0
        public void TrimShouldTrimFromBothEnds()
        {
            var func   = new Trim();
            var result = func.Execute(FunctionsHelper.CreateArgs(" epplus "), _parsingContext);

            Assert.AreEqual("epplus", result.Result);
        }
示例#2
0
        public void TrimShouldTrimMultipleSpaces()
        {
            var func   = new Trim();
            var result = func.Execute(FunctionsHelper.CreateArgs(" epplus    5 "), _parsingContext);

            Assert.AreEqual("epplus 5", result.Result);
        }
示例#3
0
        public void TrimShouldReturnDataTypeString()
        {
            var func   = new Trim();
            var result = func.Execute(FunctionsHelper.CreateArgs(" epplus "), _parsingContext);

            Assert.AreEqual(DataType.String, result.DataType);
        }