internal void GetRules_WhenNoRuleInRulebase_ReturnsDictionaryWithCountZero() { // Arrange var rulebase = new Rulebase(); // Act var result = rulebase.GetAllRules().Count; // Assert Assert.Equal(0, result); }
internal void GetRules_RulesInRulebase_ReturnsDictionaryWithCountZero() { // Arrange var rulebase = new Rulebase(); var rule1 = StubFuzzyRuleFactory.Create("Rule1"); var rule2 = StubFuzzyRuleFactory.Create("Rule2"); rulebase.AddRule(rule1); rulebase.AddRule(rule2); // Act var result = rulebase.GetAllRules(); // Assert Assert.Equal(2, result.Count); }