Beispiel #1
0
        public async Task do_not_call_send_batch_if_cancelled()
        {
            theCancellation.Cancel();

            await theSender.SendBatch(theBatch);

            theProtocol.DidNotReceive().SendBatch(theSenderCallback, theBatch);
        }
Beispiel #2
0
        public async Task do_not_call_send_batch_if_cancelled()
        {
            theCancellation.Cancel();

            await theSender.SendBatch(theBatch);

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