public void ReadAndWriteWorksAsExpected2()
        {
            const string ROOT = "Root";

            // --- Arrange
            var settings = new ServiceRegistrySettings(null, null);

            // --- Act
            var element = settings.WriteToXml(ROOT);
            var newSetting = new ServiceRegistrySettings(element);

            // --- Assert
            newSetting.Resolver.ShouldBeNull();
            newSetting.DefaultContainer.ShouldBeNull();
            newSetting.Containers.ShouldHaveCountOf(0);
        }
        public void ReadAndWriteWorksAsExpected3()
        {
            const string CONTAINER_NAME = "containerName";
            const string ROOT = "Root";

            // --- Arrange
            var settings = new ServiceRegistrySettings(CONTAINER_NAME, null, new DefaultTypeResolver());

            // --- Act
            var element = settings.WriteToXml(ROOT);
            var newSetting = new ServiceRegistrySettings(element);

            // --- Assert
            newSetting.Resolver.ShouldNotBeNull();
            newSetting.DefaultContainer.ShouldEqual(CONTAINER_NAME);
            newSetting.Containers.ShouldHaveCountOf(0);
        }