public void SetFilter_WhenFilterChange_FilterChangeEventIsPropagated() { var wasCalled = false; OnFilterChangeEvent = filter => { wasCalled = true; }; Collection.OnFilterChanged += OnFilterChangeEvent; Collection.SetFilter(PackageFilter.All, false); Assert.IsTrue(wasCalled); }
public void Setup() { Collection = new PackageCollection(); Collection.SetFilter(PackageFilter.Local); }