public void GetRuleSetsReturnsEmptyRuleSetList() { // GetRuleSets() should return an empty RuleSet list on newly created RuleMSX object RuleMSX rmsx = new RuleMSX(); List <RuleSet> ruleSets = rmsx.GetRuleSets(); Assert.That(ruleSets.Count, Is.EqualTo(0)); }
public void InstantiateRuleMSXEmptyConstGivesEmptyRuleandDataSets() { // New instance of RuleMSX should have empty RuleSet and DataSet collections RuleMSX rmsx = new RuleMSX(); Assert.That(rmsx.GetRuleSets().Count, Is.EqualTo(0)); Assert.That(rmsx.GetDataSets().Count, Is.EqualTo(0)); }
public void GetRuleSetsReturnsRuleSetCollection() { RuleMSX rmsx = new RuleMSX(); string newRuleSetName = "NewRuleSet"; rmsx.CreateRuleSet(newRuleSetName); List <RuleSet> rsl = rmsx.GetRuleSets(); RuleSet rs = rsl[0]; Assert.That(rs.GetName(), Is.EqualTo(newRuleSetName)); }