public void DispatchActionCreatorTest() { var store = new Store <AppState>(AppReducer.Invoke); store.Dispatch(AppActionCreators.Increment()); Assert.Equal(1, store.State.Count); }
public async Task DispatchAsyncActionCreatorTest() { var store = new Store <AppState>(AppReducer.Invoke); await store.Dispatch(AppActionCreators.IncrementTwice()); Assert.Equal(2, store.State.Count); }