protected override void AssertMethodWasCalledBetween2And4TimesExclusive()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetSalaryForEmployee(WithAnyArgument.OfType <string>()))
     .WasCalledBetween(2)
     .And(4).TimesExcludingTheToAndFromValues();
 }
 protected override void AssertMethodWasCalledOnce()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetSalaryForEmployee(WithAnyArgument.OfType <string>()))
     .WasCalled()
     .Once();
 }
Пример #3
0
 protected override void AssertMethodWasCalledBetween2And3TimesInclusive()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinalisePaymentsForEmployee(WithAnyArgument.OfType <string>()))
     .WasCalledBetween(2)
     .And(3).TimesIncludingTheToAndFromValues();
 }
Пример #4
0
 protected override void AssertMethodWasCalledExactly2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinalisePaymentsForEmployee(WithAnyArgument.OfType <string>()))
     .WasCalled()
     .Exactly(2).Times();
 }
 protected override void AssertMethodWasCalledOnce()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalled()
     .Once();
 }
Пример #6
0
 protected override void AssertMethodWasCalledAtLeastOnce()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinalisePaymentsForEmployee(WithAnyArgument.OfType <string>()))
     .WasCalled()
     .AtLeastOnce();
 }
 protected override void AssertMethodWasCalledBetween2And4TimesExclusive()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalledBetween(2)
     .And(4).TimesExcludingTheToAndFromValues();
 }
 protected override void AssertMethodWasCalledExactly2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalled()
     .Exactly(2).Times();
 }
 protected override void AssertMethodWasCalledOnce()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalled()
     .Once();
 }
 protected override void AssertMethodWasCalledATMost2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalledAtMost(2)
     .Times();
 }
 protected override void AssertMethodWasCalledExactly2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalled()
     .Exactly(2).Times();
 }
 protected override void AssertMethodWasCalledBetween2And3TimesInclusive()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalledBetween(2)
     .And(3).TimesIncludingTheToAndFromValues();
 }
 protected override void AssertMethodWasCalledATMost2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalledAtMost(2)
     .Times();
 }
 protected override void AssertMethodWasCalledAtleast3Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalled()
     .AtLeast(3)
     .Times();
 }
 protected override void AssertMethodWasCalledAtleast3Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalled()
     .AtLeast(3)
     .Times();
 }