コード例 #1
0
        public void ExportConfigurationCommandBase_VerifyDefaultConfiguration()
        {
            PropertiesDictionary configuration = CreateDefaultConfiguration();

            configuration.Should().NotBeNull();

            // We export two rules, FunctionlessTestRule and TestRule
            configuration.Keys.Count.Should().Be(NumberOfExportedRules());
        }
コード例 #2
0
        public void ExportConfigurationCommandBase_VerifyAllRulesDisabledConfiguration()
        {
            PropertiesDictionary configuration = CreateAllRulesDisabledConfiguration();

            configuration.Should().NotBeNull();
            configuration.Keys.Count.Should().Be(2);

            foreach (PropertiesDictionary ruleProperties in configuration.Values)
            {
                ((RuleEnabledState)ruleProperties[DefaultDriverOptions.RuleEnabled.Name]).Should().Be(RuleEnabledState.Disabled);
            }
        }
コード例 #3
0
        public void ExportConfigurationCommandBase_VerifyDefaultConfiguration()
        {
            PropertiesDictionary configuration = CreateDefaultConfiguration();

            configuration.Should().NotBeNull();

            // We only have a single rule that provides options. Every rule
            // provides a default setting, however, that controls whether
            // a rule is enabled or forced to a particular warning level.
            // We therefore expect two top-level items in the configuration,
            // each of which is a properties collection for a rule.
            configuration.Keys.Count.Should().Be(2);
        }