Inheritance: IContextSpecification
Example #1
0
 public static void VerifyCalledOnceDuringBecause <T>(
     this ITesteroidsMock <T> mock,
     ContextSpecificationBase contextSpecification,
     Expression <Action <T> > verifyMethod) where T : class
 {
     mock.VerifyNumberOfCallsDuringBecause(contextSpecification, verifyMethod, Times.Never(), Times.Once());
 }
Example #2
0
        public static void VerifyNumberOfCallsDuringBecause <T>(
            this ITesteroidsMock <T> mock,
            ContextSpecificationBase contextSpecification,
            Expression <Action <T> > expression,
            Times numberBefore,
            Times numberAfter) where T : class
        {
            mock.Verify(expression, numberBefore);

            contextSpecification.Because();

            mock.Verify(expression, numberAfter);
        }