public void AddEmptyStoreLater() { var db = new ContactDB(); int count = 0; db.UpdateStream .Subscribe(c => count++); db.Add(new dummyStore()); db.ShutDown(); Assert.AreEqual(0, count); }
public void OneContactSubscribeBeforeAdded() { var db = new ContactDB(); var store = new dummyStore(); db.Add(store); int count = 0; db.UpdateStream .Subscribe(c => count++); store.AddDummyContacts(1); db.ShutDown(); Assert.AreEqual(1, count); }