public void ReturnDefaultValue_WhenOutOfRange() { // Arrange int expectedValue = 2; int actualValue; // Act actualValue = SUT.GetCorrectIntValue(20, 0, 10, 2); // Assert Assert.AreEqual(expectedValue, actualValue); }
public void ReturnCandidateValue_WhenEqualToMax() { // Arrange int expectedValue = 10; int actualValue; // Act actualValue = SUT.GetCorrectIntValue(expectedValue, 0, 10, 2); // Assert Assert.AreEqual(expectedValue, actualValue); }