Esempio n. 1
0
        public void DispatchActionCreatorTest()
        {
            var store = new Store <AppState>(AppReducer.Invoke);

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

            Assert.Equal(2, store.State.Count);
        }