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();
 }
コード例 #5
0
 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();
 }
コード例 #7
0
 protected override void AssertMethodWasCalledBetween2And4TimesExclusive()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalledBetween(2)
     .And(4).TimesExcludingTheToAndFromValues();
 }
コード例 #8
0
 protected override void AssertMethodWasCalledExactly2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalled()
     .Exactly(2).Times();
 }
コード例 #9
0
 protected override void AssertMethodWasCalledOnce()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalled()
     .Once();
 }
コード例 #10
0
 protected override void AssertMethodWasCalledATMost2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalledAtMost(2)
     .Times();
 }
コード例 #11
0
 protected override void AssertMethodWasCalledExactly2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalled()
     .Exactly(2).Times();
 }
コード例 #12
0
 protected override void AssertMethodWasCalledBetween2And3TimesInclusive()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalledBetween(2)
     .And(3).TimesIncludingTheToAndFromValues();
 }
コード例 #13
0
 protected override void AssertMethodWasCalledATMost2Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalledAtMost(2)
     .Times();
 }
コード例 #14
0
 protected override void AssertMethodWasCalledAtleast3Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.GetNextPayDate())
     .WasCalled()
     .AtLeast(3)
     .Times();
 }
コード例 #15
0
 protected override void AssertMethodWasCalledAtleast3Times()
 {
     PayrollSystemMock.Assert()
     .ThatMethod(x => x.FinaliseAllPayments())
     .WasCalled()
     .AtLeast(3)
     .Times();
 }