public void WhenCreated_PropertiesReturnsAll()
        {
            var element = new ClientTelemetryExtensionElement();
            var props   = element.CreateProperties();

            Assert.AreEqual(6, props.Count);
        }
        public void WhenCreated_PropertiesHaveDefaultValues()
        {
            var element = new ClientTelemetryExtensionElement();
            var props   = element.CreateProperties();

            var prop = props.OfType <ConfigurationProperty>().First(x => x.Name == "rootOperationIdHeaderName");

            Assert.AreEqual(CorrelationHeaders.HttpStandardRootIdHeader, prop.DefaultValue);

            prop = props.OfType <ConfigurationProperty>().First(x => x.Name == "parentOperationIdHeaderName");
            Assert.AreEqual(CorrelationHeaders.HttpStandardParentIdHeader, prop.DefaultValue);

            prop = props.OfType <ConfigurationProperty>().First(x => x.Name == "soapRootOperationIdHeaderName");
            Assert.AreEqual(CorrelationHeaders.SoapStandardRootIdHeader, prop.DefaultValue);

            prop = props.OfType <ConfigurationProperty>().First(x => x.Name == "soapParentOperationIdHeaderName");
            Assert.AreEqual(CorrelationHeaders.SoapStandardParentIdHeader, prop.DefaultValue);

            prop = props.OfType <ConfigurationProperty>().First(x => x.Name == "soapHeaderNamespace");
            Assert.AreEqual(CorrelationHeaders.SoapStandardNamespace, prop.DefaultValue);
        }