public void UnitTestFramework_TellMessageAndWaitForExceptions_InvokesTellWaiter()
        {
            //arrange
            UnitTestFramework <DummyActor> sut = CreateUnitTestFramework();

            //act
            sut.TellMessageAndWaitForExceptions(Message, ExpectedChildCount);

            //assert
            TellWaiterMock.Verify(
                teller => teller.TellMessage(
                    ExceptionWaiter,
                    this,
                    SutActor,
                    Message,
                    ExpectedChildCount,
                    null),
                Times.Once);
        }
예제 #2
0
        public void UnitTestFramework_TellMessageAndWaitForException_InvokesTellWaiter()
        {
            //arrange
            UnitTestFramework <DummyActor> sut = CreateUnitTestFramework();

            //act
            sut.TellMessageAndWaitForException(Message, Sender);

            //assert
            TellWaiterMock.Verify(
                teller => teller.TellMessage(
                    ExceptionWaiter,
                    this,
                    SutActor,
                    Message,
                    1,
                    Sender),
                Times.Once);
        }