public void ServiceTimeoutsElement_defaults()
        {
            ServiceTimeoutsElement element = new ServiceTimeoutsElement();

            Assert.AreEqual("System.ServiceModel.Description.ServiceTimeoutsBehavior", element.BehaviorType.FullName, "BehaviorType");
            Assert.AreEqual("serviceTimeouts", element.ConfigurationElementName, "ConfigurationElementName");

            Assert.AreEqual(new TimeSpan(0, 0, 0), element.TransactionTimeout, "TransactionTimeout");
        }
        public void ServiceTimeoutsElement()
        {
            ServiceBehaviorElement behavior = OpenConfig();
            ServiceTimeoutsElement element  = (ServiceTimeoutsElement)behavior [typeof(ServiceTimeoutsElement)];

            if (element == null)
            {
                Assert.Fail("ServiceTimeoutsElement is not exist in collection.");
            }

            Assert.AreEqual("System.ServiceModel.Description.ServiceTimeoutsBehavior", element.BehaviorType.FullName, "BehaviorType");
            Assert.AreEqual("serviceTimeouts", element.ConfigurationElementName, "ConfigurationElementName");

            Assert.AreEqual(new TimeSpan(0, 3, 0), element.TransactionTimeout, "TransactionTimeout");
        }