예제 #1
0
        public void ExpectInvokedAtMostNTimes()
        {
            Expect.AtMost(3).MethodCall(() => myObject.MyEmptyMethod());

            myObject.MyEmptyMethod();
            myObject.MyEmptyMethod();
            myObject.MyEmptyMethod();
        }