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)); }
public void ShouldReturnFalse_WhenReducerFunctionIsNotRegistered() { var testSubject = new MultiActionReducerTestSubject(); var unsupportedAction = new UnsupportedAction(); Assert.False(testSubject.ShouldReduceStateForAction(unsupportedAction)); }