Пример #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"
         );
 }
Пример #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);
        }
Пример #3
0
 public void MyTestCleanup()
 {
     KB.Clear();
 }
Пример #4
0
 public void ClearKB()
 {
     KB.Clear();
 }