Пример #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);
        }