public void SubscribesToStateProperties() { Subject.ExecuteOnInitialized(); Assert.Equal(1, MockState1.SubscribeCount); Assert.Equal(1, MockState2.SubscribeCount); }
public void UnsubscribesFromStateProperties() { Subject.ExecuteOnInitialized(); Subject.Dispose(); Assert.Equal(1, MockState1.UnsubscribeCount); Assert.Equal(1, MockState2.UnsubscribeCount); }