public void WhenBuildingFilter_ThenCreatesEnabledFilter()
        {
            var filter = (LogEnabledFilter)filterData.BuildFilter();

            Assert.AreEqual("filter", filter.Name);
            Assert.IsTrue(filter.Enabled);
        }
        public void WhenBuildingFilter_ThenCreatesPriorityFilter()
        {
            var filter = (PriorityFilter)filterData.BuildFilter();

            Assert.AreEqual("filter", filter.Name);
            Assert.AreEqual(100, filter.MinimumPriority);
            Assert.AreEqual(200, filter.MaximumPriority);
        }
        public void WhenBuildingFilter_ThenCreatesCategoryFilter()
        {
            var filter = (CategoryFilter)filterData.BuildFilter();

            Assert.AreEqual("filter", filter.Name);
            Assert.AreEqual(2, filter.CategoryFilters.Count);
            Assert.IsTrue(filter.CategoryFilters.Contains("category 1"));
            Assert.IsTrue(filter.CategoryFilters.Contains("category 2"));
            Assert.AreEqual(CategoryFilterMode.DenyAllExceptAllowed, filter.CategoryFilterMode);
        }
        public void WhenBuildingFilter_ThenCreatesCustomFilter()
        {
            var filter = (MockCustomLogFilter)filterData.BuildFilter();

            Assert.AreEqual("bar", filter.customValue);
        }