public void CanSerializeToXml()
        {
            var binding = new NetMsmqBindingElement {
                RetryPolicy = NetMsmqRetryPolicy.LongRunning
            };

            binding.ApplyEnvironmentOverrides(TargetEnvironment.ACCEPTANCE);

            binding.GetBindingElementXml("netMsmqBinding")
            .Should().Be("<binding name=\"netMsmqBinding\" maxRetryCycles=\"3\" receiveRetryCount=\"3\" retryCycleDelay=\"00:09:00\" timeToLive=\"00:30:00\" />");
        }
        public void SerializeToXml()
        {
            var binding = new NetMsmqBindingElement {
                RetryPolicy = NetMsmqRetryPolicy.LongRunning
            };

            binding.ApplyEnvironmentOverrides("ACC");
            Assert.That(
                binding.GetBindingElementXml("netMsmqBinding"),
                Is.EqualTo("<binding name=\"netMsmqBinding\" maxRetryCycles=\"3\" receiveRetryCount=\"3\" retryCycleDelay=\"00:09:00\" timeToLive=\"00:30:00\" />"));
        }