/*public*/ void TestRemovingKS() { IReactiveController controller = new ReactivePriorityController(); IBlackboard blackboard = new Blackboard(); ReactiveKnowledgeSource ks = new KS_Old_ReactiveIDSelector(blackboard); controller.AddKnowledgeSource(ks); Assert.Equal(1, controller.ActiveKSs.Count); controller.RemoveKnowledgeSource(ks); Assert.Equal(0, controller.ActiveKSs.Count); }
/*public*/ void TestAddingKS() { // Maintaining the activeKSs is done through the abstract class Controller. Using the concrete class LexemeController for testing. IReactiveController controller = new ReactivePriorityController(); IBlackboard blackboard = new Blackboard(); ReactiveKnowledgeSource ks = new KS_Old_ReactiveIDSelector(blackboard); Assert.Equal(0, controller.ActiveKSs.Count); controller.AddKnowledgeSource(ks); Assert.Equal(1, controller.ActiveKSs.Count); }