public void TestCustomInstanceByType() { var factory = new CustomInstanceFactory(); var DocValuesFormat = factory.GetDocValuesFormat("Lucene45"); assertNotNull(DocValuesFormat); assertEquals(typeof(CustomNamedDocValuesFormat), DocValuesFormat.GetType()); }
public void TestCustomInstanceByName() { var factory = new CustomInstanceFactory(); var DocValuesFormat = factory.GetDocValuesFormat("ThisIsATest"); assertNotNull(DocValuesFormat); assertEquals(typeof(NotIgnoredDocValuesFormat), DocValuesFormat.GetType()); }