public void Given_Null_ServiceBusMessage_When_WithServiceBusMessage_Invoked_Then_It_Should_Throw_Exception()
        {
            var ex = new MessageBodyZeroLengthException();

            Action action = () => ex.WithServiceBusMessage(null);

            action.Should().Throw <ArgumentNullException>();
        }
        public void Given_ServiceBusMessage_When_WithServiceBusMessage_Invoked_Then_It_Should_Return_Result()
        {
            var ex = new MessageBodyZeroLengthException();

#if NET461
            var message = new BrokeredMessage();
#elif NETCOREAPP2_1
            var message = new Message();
#endif
            ex.WithServiceBusMessage(message);

            ex.Should().BeOfType <MessageBodyZeroLengthException>();
#if NET461
            message.Dispose();
#endif
        }