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(); } }
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(); } }