public void UnitTestFramework_Delay_InvokesDelayer() { //arrange UnitTestFramework <DummyActor> sut = CreateUnitTestFramework(); //act sut.Delay(DelayDuration); //assert DelayerMock.Verify( delayer => delayer.Delay(this, DelayDuration), Times.Once); }
public async Task UnitTestFramework_DelayAsync_InvokesDelayerAsync() { //arrange UnitTestFramework <DummyActor> sut = CreateUnitTestFramework(); //act await sut.DelayAsync(DelayDuration); //assert DelayerMock.Verify( delayer => delayer.DelayAsync(this, DelayDuration), Times.Once); }