//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void createFailPartitionedIndex() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: internal virtual void CreateFailPartitionedIndex() { using (SchemaIndex failedIndex = LuceneSchemaIndexBuilder.Create(_descriptor, _config).withFileSystem(_fileSystem).withIndexRootFolder(new File(_testDir.directory("failedIndexFolder"), "failedIndex")).build()) { failedIndex.open(); AddDocumentToIndex(failedIndex, 35); assertEquals(4, failedIndex.Partitions.size()); failedIndex.markAsFailed("Some failure"); failedIndex.flush(); assertTrue(failedIndex.Open); assertFalse(failedIndex.Online); } }