Exemplo n.º 1
0
 public void MyTestInitialize()
 {
     KB.Clear();
     KB.Assert(
         KB.Store + "Newt" + "loves" + "Newt",
         KB.Store + "John" + "loves" + "Mary",
         KB.Store + "John" + "loves" + "Kelly",
         KB.Store + "John" + "loves" + "Mary",
         KB.Store + "Kelly" + "loves" + "Mary"
         );
 }
Exemplo n.º 2
0
        public virtual void RemoveAll()
        {
            if (AllowToUpdate == false)
            {
                throw new Exception("The Knowledge Base is locked");
            }

            // fire event
            if (OnBeforeClearKnowledgeBase(null) == false)
            {
                return;
            }

            // clear KB
            KB.Clear();

            // fire event
            OnClearKnowledgeBase(null);
        }
Exemplo n.º 3
0
 public void MyTestCleanup()
 {
     KB.Clear();
 }
Exemplo n.º 4
0
 public void ClearKB()
 {
     KB.Clear();
 }