public void IsArrayInOrder_WhenArrayElementsAreNotInNumericAscendingOrder_ReturnsFalse() { var sut = new TestReverser(1); sut.SetArray(new int[] { 2, 1 }); var result = sut.IsArrayInAscendingOrder(); Assert.False(result); }
public void IsArrayInAscendingOrder_WhenArrayElementsAreInNumericAscendingOrder_ReturnsTrue(int[] input) { var sut = new TestReverser(1); sut.SetArray(input); var result = sut.IsArrayInAscendingOrder(); Assert.True(result); }