public void TrimShouldTrimFromBothEnds() { var func = new Trim(); var result = func.Execute(FunctionsHelper.CreateArgs(" epplus "), _parsingContext); Assert.AreEqual("epplus", result.Result); }
public void TrimShouldTrimMultipleSpaces() { var func = new Trim(); var result = func.Execute(FunctionsHelper.CreateArgs(" epplus 5 "), _parsingContext); Assert.AreEqual("epplus 5", result.Result); }
public void TrimShouldReturnDataTypeString() { var func = new Trim(); var result = func.Execute(FunctionsHelper.CreateArgs(" epplus "), _parsingContext); Assert.AreEqual(DataType.String, result.DataType); }