Esempio n. 1
0
        public void ExistingOptionsNotClobbered()
        {
            var exporter = new XsdDataContractExporter() { Options = new ExportOptions() };
            var smb = new ServiceMetadataBehavior();

            smb.MetadataExporter.State.Add(exporter.GetType(), exporter);
            host.Description.Behaviors.Add(smb);

            var exporter2 = host.GetXsdDataContractExporter();
            Assert.ReferenceEquals(exporter, exporter2);
            Assert.ReferenceEquals(exporter.Options, exporter2.Options);
        }