Пример #1
0
            public void ShouldReturnTrue_WhenReducerFunctionIsRegistered()
            {
                var testSubject = new MultiActionReducerTestSubject();

                var addAction = new AddAction(1);

                Assert.True(testSubject.ShouldReduceStateForAction(addAction));

                var multiplyAction = new MultiplyAction(1);

                Assert.True(testSubject.ShouldReduceStateForAction(multiplyAction));
            }
Пример #2
0
            public void ShouldReturnFalse_WhenReducerFunctionIsNotRegistered()
            {
                var testSubject = new MultiActionReducerTestSubject();

                var unsupportedAction = new UnsupportedAction();

                Assert.False(testSubject.ShouldReduceStateForAction(unsupportedAction));
            }