Inheritance: IWordPredictorEngineFactory
 public void Release_Should_Call_Dispose()
 {
     SybilleWordPredictorEngineFactory f = new SybilleWordPredictorEngineFactory( TestHelper.SybilleResourceFullPath, TestHelper.MockFeature( 8 ).Object );
     var engine = new DisposableEngine();
     f.Release( engine );
     Assert.That( engine.DisposedCalled );
 }
 public void Sybille_Dictionnary_Should_Load_And_Provide_Results()
 {
     SybilleWordPredictorEngineFactory f = new SybilleWordPredictorEngineFactory( TestHelper.SybilleResourceFullPath, TestHelper.MockFeature( 8 ).Object );
     IWordPredictorEngine engine = f.Create( "sybille" );
     TestEngine( engine );
     f.Release( engine );
 }
 public void Sybillye_And_Semantic_Sybille_Are_Available()
 {
     SybilleWordPredictorEngineFactory f = new SybilleWordPredictorEngineFactory( TestHelper.SybilleResourceFullPath, TestHelper.MockFeature( 8 ).Object );
     Assert.That( f.Create( "sybille" ), Is.Not.Null );
     Assert.That( f.Create( "sem-sybille" ), Is.Not.Null );
 }
 public void Create_Should_Throw_Exception_If_No_Engine_With_The_Given_Name_Is_Available()
 {
     SybilleWordPredictorEngineFactory f = new SybilleWordPredictorEngineFactory( TestHelper.SybilleResourceFullPath, TestHelper.MockFeature( 8 ).Object );
     Assert.Throws<ArgumentException>( () => f.Create( "lucene" ) );
 }