//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void createPopulateDropIndex() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void CreatePopulateDropIndex() { File crudOperation = _testDir.directory("indexCRUDOperation"); using (SchemaIndex crudIndex = LuceneSchemaIndexBuilder.Create(_descriptor, _config).withFileSystem(_fileSystem).withIndexRootFolder(new File(crudOperation, "crudIndex")).build()) { crudIndex.open(); AddDocumentToIndex(crudIndex, 1); assertEquals(1, crudIndex.Partitions.size()); AddDocumentToIndex(crudIndex, 21); assertEquals(3, crudIndex.Partitions.size()); crudIndex.drop(); assertFalse(crudIndex.Open); assertEquals(0, crudOperation.list().length); } }