public void GetRuleSetWithIncorrectNameReturnsNull() { RuleMSX rmsx = new RuleMSX(); string newRuleSetName = "NewRuleSet"; rmsx.createRuleSet(newRuleSetName); RuleSet rs = rmsx.getRuleSet("SomeOtherName"); Assert.IsNull(rs); }
public void GetRuleSetByNameReturnsCorrectRuleSet() { RuleMSX rmsx = new RuleMSX(); string newRuleSetName = "NewRuleSet"; rmsx.createRuleSet(newRuleSetName); RuleSet rs = rmsx.getRuleSet(newRuleSetName); Assert.That(rs.getName(), Is.EqualTo(newRuleSetName)); }