SonarLint.VisualStudio.Integration.UnitTests.ConfigurableRuleSetSerializer.AssertRuleSetsAreEqual C# (CSharp) Method

AssertRuleSetsAreEqual() public method

public AssertRuleSetsAreEqual ( string ruleSetPath, RuleSet expectedRuleSet ) : void
ruleSetPath string
expectedRuleSet RuleSet
return void
        public void AssertRuleSetsAreEqual(string ruleSetPath, RuleSet expectedRuleSet)
        {
            this.AssertRuleSetExists(ruleSetPath);

            RuleSet actualRuleSet = this.savedRuleSets[ruleSetPath];

            Assert.IsNotNull(actualRuleSet, "Expected rule set to be written");
            RuleSetAssert.AreEqual(expectedRuleSet, actualRuleSet);
        }