public void TestCustomInstanceByType() { var factory = new CustomInstanceFactory(); var PostingsFormat = factory.GetPostingsFormat("Lucene40"); assertNotNull(PostingsFormat); assertEquals(typeof(CustomNamedPostingsFormat), PostingsFormat.GetType()); }
public void TestCustomInstanceByName() { var factory = new CustomInstanceFactory(); var PostingsFormat = factory.GetPostingsFormat("ThisIsATest"); assertNotNull(PostingsFormat); assertEquals(typeof(NotIgnoredPostingsFormat), PostingsFormat.GetType()); }