public void WhenAdd_CurrentValueIncrementsByExpectedAmount(int initialValue, int increment, int expectation) { //arrange tested = new MutableInteger(initialValue); //act tested.Add(increment); //assert Assert.AreEqual(expectation, tested.GetCurrentValue()); }
public void WhenAdd_CurrentValueIsIncremented() { //arrange int expected = 10; tested = new MutableInteger(5); //act tested.Add(5); int actual = tested.GetCurrentValue(); //assert Assert.AreEqual(expected, actual); }