Пример #1
0
        public void UnitTestFramework_Delay_InvokesDelayer()
        {
            //arrange
            UnitTestFramework <DummyActor> sut = CreateUnitTestFramework();

            //act
            sut.Delay(DelayDuration);

            //assert
            DelayerMock.Verify(
                delayer => delayer.Delay(this, DelayDuration),
                Times.Once);
        }
Пример #2
0
        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);
        }