public void FetchListOfflineCache_PackagesChangeEventIsPropagated() { var wasCalled = false; OnPackagesChangeEvent = (filter, packages, selected) => { wasCalled = true; }; Collection.OnPackagesChanged += OnPackagesChangeEvent; Factory.Packages = PackageSets.Instance.Many(5); Collection.FetchListOfflineCache(true); Assert.IsTrue(wasCalled); }