コード例 #1
0
        public void WithInheritance_ShouldReturnValueWithInheritanceSet(bool shouldInherit)
        {
            var originalConfig = new RuleConfig(shouldInherit, Severity.Error);

            RuleConfig config = originalConfig.WithInheritance(!shouldInherit);

            Assert.Equal(!shouldInherit, config.ShouldInherit);
        }