RemoveFilter() public method

public RemoveFilter ( IFilter filter ) : bool
filter IFilter
return bool
        public void RemoveFilter_RemovingAFilterWhenFilterExist_FilterManagerRemainEmptyFilters()
        {
            // Arrange
            FilterManager target = new FilterManager();
            var filter = Mock.Create<IFilter>();
            target.AddFilter(filter);

            // Act

            target.RemoveFilter(filter);
            // Assert
            Assert.IsTrue(target.CurrentFilters.Length == 0);
        }
        public void RemoveFilter_RemovingAFilterWhenOtherFilterExist_FilterManagerShouldContainThatFilters()
        {
            // Arrange
            FilterManager target = new FilterManager();
            var filter = Mock.Create<IFilter>();
            var filter2 = Mock.Create<IFilter>();
            target.AddFilter(filter);
            target.AddFilter(filter2);

            // Act

            target.RemoveFilter(filter);
            // Assert
            Assert.IsTrue(target.CurrentFilters.Contains(filter2));
            Assert.IsFalse(target.CurrentFilters.Contains(filter));
        }