Ejemplo n.º 1
0
        public void Remove_filter_removes_and_notifies()
        {
            FilterStore store  = new FilterStore();
            BlockFilter filter = store.CreateBlockFilter(1);

            store.SaveFilter(filter);
            bool hasNotified = false;

            store.FilterRemoved += (s, e) => hasNotified = true;
            store.RemoveFilter(0);

            Assert.True(hasNotified, "notied");
            Assert.False(store.FilterExists(0), "exists");
        }