public void On_level_inclusive_no_result() { PluginBase plugin = new Plugin(); IFilterExpression filter = new LevelFilter() { Operator = "in", Operand = Guid.NewGuid().ToString() }; ((Plugin)plugin).SetLevel("category"); var days = plugin.GetDays(); foreach (var day in days) { var logs = plugin.GetLogs(day); logs = filter.Filter(logs); Assert.True(logs.Count() == 0); } }
public void On_level_exclusive_no_result_case_insensitive() { PluginBase plugin = new Plugin(); IFilterExpression filter = new LevelFilter() { Operator = "not in", Operand = "level" }; ((Plugin)plugin).SetLevel("lEvEl"); var days = plugin.GetDays(); foreach (var day in days) { var logs = plugin.GetLogs(day); logs = filter.Filter(logs); Assert.True(logs.Count() == 0); } }