示例#1
0
        public void ResetValidInput(int initial, int expected)
        {
            ICalculator calculator = new Calculator();

            calculator.Add(initial);
            calculator.Reset();
            Assert.Equal(expected, calculator.Result);
        }