public void AddActualMethodIncreaseActualCalls() { Range r = new Range(0, 5); IExpectation test = GetExpectation(method, r, 0); Assert.Equal(0, test.ActualCallsCount); test.AddActualCall(); Assert.Equal(1, test.ActualCallsCount); test.AddActualCall(); Assert.Equal(2, test.ActualCallsCount); }
protected static void SetupExpectation(IExpectation expectation, Range r, int actual) { expectation.Expected = r; for (int i = 0; i < actual; i++) { expectation.AddActualCall(); } }