Esempio n. 1
0
 public void SparqlOperatorRegistration3()
 {
     try
     {
         MockSparqlOperator op = new MockSparqlOperator();
         SparqlOperators.AddOperator(op);
         Assert.IsTrue(SparqlOperators.IsRegistered(op));
         SparqlOperators.Reset();
         Assert.IsFalse(SparqlOperators.IsRegistered(op));
     }
     finally
     {
         SparqlOperators.Reset();
     }
 }
Esempio n. 2
0
 public void SparqlOperatorRegistration2()
 {
     try
     {
         MockSparqlOperator op = new MockSparqlOperator();
         SparqlOperators.AddOperator(op);
         Assert.True(SparqlOperators.IsRegistered(op));
         SparqlOperators.RemoveOperatorByType(new MockSparqlOperator());
         Assert.False(SparqlOperators.IsRegistered(op));
     }
     finally
     {
         SparqlOperators.Reset();
     }
 }