示例#1
0
        public void TestToString()
        {
            var filter = new SubstringFilter("a", true);

            filter.ToString().Should().Be("message.Contains(a, InvariantCultureIgnoreCase)");

            filter = new SubstringFilter("a", false);
            filter.ToString().Should().Be("message.Contains(a, InvariantCulture)");
        }
示例#2
0
        public void SubstringFilter(bool isEqual)
        {
            var filter = new SubstringFilter("Name", "ShareFile", isEqual);

            filter.ToString().Should().Be("substringof('ShareFile', Name) eq " + isEqual.ToLowerString());
        }