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()); }
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); }