public void ShouldReturnFalse_WhenReducerFunctionIsNotRegistered() { var testSubject = new MultiActionReducerTestSubject(); var unsupportedAction = new UnsupportedAction(); Assert.False(testSubject.ShouldReduceStateForAction(unsupportedAction)); }
public void ShouldThrowInvalidOperationException_WhenNoReducerFunctionIsRegisteredForActionType() { var testSubject = new MultiActionReducerTestSubject(); var state = new MultiActionReducerTestState(42); var unsupportedAction = new UnsupportedAction(); Assert.Throws <InvalidOperationException>(() => state = testSubject.Reduce(state, unsupportedAction)); }