예제 #1
0
        public async Task do_not_call_send_batch_if_latched()
        {
            theSender.LatchAndDrain();

            await theSender.SendBatch(theBatch);

            theProtocol.DidNotReceive().SendBatch(theSenderCallback, theBatch);

            theSenderCallback.Received().SenderIsLatched(theBatch);
        }
예제 #2
0
        public async Task do_not_call_send_batch_if_latched()
        {
            await theSender.LatchAndDrain();

            await theSender.SendBatch(theBatch);

#pragma warning disable 4014
            theProtocol.DidNotReceive().SendBatch(theSenderCallback, theBatch);

            theSenderCallback.Received().SenderIsLatched(theBatch);
#pragma warning restore 4014
        }