public void NextState_StepCountIncreased() { var initialState = new RAState(173); var sut = initialState.Next(); Assert.Equal(2, sut.StepCount); }
public void NextState_NotNull() { var initialState = new RAState(154); var sut = initialState.Next(); Assert.NotNull(sut); }
public void NextState_InputIsPreviousSum(int input) { var initialState = new RAState(input); var expected = initialState.Sum; var sut = initialState.Next(); Assert.Equal(expected, sut.Input); }
public void Sum_ResultCorrect(int input, bool final) { var sut = new RAState(input); Assert.Equal(final, sut.IsFinalState); }
public void Sum_ResultCorrect(int input, int sum) { var sut = new RAState(input); Assert.Equal(sum, sut.Sum); }
public void CreateState_NotNull(int input) { var sut = new RAState(input); Assert.NotNull(sut); }
public void CreatedState_InputCorrect(int input) { var sut = new RAState(input); Assert.Equal(input, sut.Input); }
public void CreatedState_StepCountCorrect(int input) { var sut = new RAState(input); Assert.Equal(1, sut.StepCount); }
public void Reverse_ResultCorrect(int input, int reverse) { var sut = new RAState(input); Assert.Equal(reverse, sut.Reversed); }