상속: ViewModelBase, ISettingsViewModel
        public void InspectionsAreSetInCtor()
        {
            var defaultConfig = GetDefaultConfig();
            var viewModel = new InspectionSettingsViewModel(defaultConfig);

            Assert.IsTrue(defaultConfig.UserSettings.CodeInspectionSettings.CodeInspections.SequenceEqual(
                    viewModel.InspectionSettings.SourceCollection.OfType<CodeInspectionSetting>()));
        }
        public void SetDefaultsWorks()
        {
            var viewModel = new InspectionSettingsViewModel(GetNondefaultConfig());

            var defaultConfig = GetDefaultConfig();
            viewModel.SetToDefaults(defaultConfig);

            Assert.IsTrue(defaultConfig.UserSettings.CodeInspectionSettings.CodeInspections.SequenceEqual(
                    viewModel.InspectionSettings.SourceCollection.OfType<CodeInspectionSetting>()));
        }
        public void SaveConfigWorks()
        {
            var customConfig = GetNondefaultConfig();
            var viewModel = new InspectionSettingsViewModel(customConfig);

            var config = GetDefaultConfig();
            viewModel.UpdateConfig(config);

            Assert.IsTrue(config.UserSettings.CodeInspectionSettings.CodeInspections.SequenceEqual(
                    viewModel.InspectionSettings.SourceCollection.OfType<CodeInspectionSetting>()));
        }
        public void InspectionSeveritiesAreUpdated()
        {
            var defaultConfig = GetDefaultConfig();
            var viewModel = new InspectionSettingsViewModel(defaultConfig);

            viewModel.InspectionSettings.SourceCollection.OfType<CodeInspectionSetting>().First().Severity =
                GetNondefaultConfig().UserSettings.CodeInspectionSettings.CodeInspections[0].Severity;

            var updatedConfig = defaultConfig;
            updatedConfig.UserSettings.CodeInspectionSettings.CodeInspections[0].Severity =
                GetNondefaultConfig().UserSettings.CodeInspectionSettings.CodeInspections[0].Severity;

            Assert.IsTrue(updatedConfig.UserSettings.CodeInspectionSettings.CodeInspections.SequenceEqual(
                    viewModel.InspectionSettings.SourceCollection.OfType<CodeInspectionSetting>()));
        }