//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void closeFileSystemOnShutdown() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CloseFileSystemOnShutdown() { BatchInserter batchInserter = mock(typeof(BatchInserter)); IndexConfigStoreProvider configStoreProvider = mock(typeof(IndexConfigStoreProvider)); FileSystemAbstraction fileSystem = mock(typeof(FileSystemAbstraction)); FileSystemClosingBatchInserter inserter = new FileSystemClosingBatchInserter(batchInserter, configStoreProvider, fileSystem); inserter.Shutdown(); InOrder verificationOrder = inOrder(batchInserter, fileSystem); verificationOrder.verify(batchInserter).shutdown(); verificationOrder.verify(fileSystem).close(); }
public FileSystemClosingBatchInserter(BatchInserter @delegate, IndexConfigStoreProvider configStoreProvider, FileSystemAbstraction fileSystem) { this.@delegate = @delegate; this._configStoreProvider = configStoreProvider; this._fileSystem = fileSystem; }