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)"); }
public void SubstringFilter(bool isEqual) { var filter = new SubstringFilter("Name", "ShareFile", isEqual); filter.ToString().Should().Be("substringof('ShareFile', Name) eq " + isEqual.ToLowerString()); }