public void ImportDictionaryAsSingleObject()
        {
            var container = ContainerFactory.Create();
            var batch     = new CompositionBatch();
            var importer  = new ImportADictionaryObject();
            var exporter  = new ExportADictionaryObject();

            batch.AddPart(importer);
            batch.AddPart(exporter);
            container.Compose(batch);

            Assert.Equal(2, importer.MyDictionary.Count);
        }
        public void ImportDictionaryAsSingleObject()
        {
            // Set variable to ensure the hack is turned off.
            Environment.SetEnvironmentVariable("ONLY_ALLOW_IMPORTMANY", "1");

            var container = ContainerFactory.Create();
            var batch     = new CompositionBatch();
            var importer  = new ImportADictionaryObject();
            var exporter  = new ExportADictionaryObject();

            batch.AddPart(importer);
            batch.AddPart(exporter);
            container.Compose(batch);

            Assert.AreEqual(2, importer.MyDictionary.Count);
        }