Beispiel #1
0
        public void IsBlankShouldReturnTrueIfFirstArgIsEmptyString()
        {
            var func   = new IsBlank();
            var args   = FunctionsHelper.CreateArgs(string.Empty);
            var result = func.Execute(args, _context);

            Assert.IsTrue((bool)result.Result);
        }
Beispiel #2
0
        public void IsBlankShouldReturnTrueIfFirstArgIsNull()
        {
            var func   = new IsBlank();
            var args   = FunctionsHelper.CreateArgs(new object[] { null });
            var result = func.Execute(args, _context);

            Assert.IsTrue((bool)result.Result);
        }