//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void canRemoveFilesAndReinvokeShutdown() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CanRemoveFilesAndReinvokeShutdown() { GraphDatabaseAPI databaseAPI = ( GraphDatabaseAPI )this._graphDb; FileSystemAbstraction fileSystemAbstraction = GetDatabaseFileSystem(databaseAPI); _graphDb.shutdown(); fileSystemAbstraction.DeleteRecursively(databaseAPI.DatabaseLayout().databaseDirectory()); _graphDb.shutdown(); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static void prepareSampleLegacyDatabase(String version, org.neo4j.io.fs.FileSystemAbstraction workingFs, java.io.File workingDirectory, java.io.File prepareDirectory) throws java.io.IOException public static void PrepareSampleLegacyDatabase(string version, FileSystemAbstraction workingFs, File workingDirectory, File prepareDirectory) { if (!prepareDirectory.exists()) { throw new System.ArgumentException("bad prepare directory"); } File resourceDirectory = FindFormatStoreDirectoryForVersion(version, prepareDirectory); workingFs.DeleteRecursively(workingDirectory); workingFs.Mkdirs(workingDirectory); workingFs.CopyRecursively(resourceDirectory, workingDirectory); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public void deleteRecursively(java.io.File directory) throws java.io.IOException public override void DeleteRecursively(File directory) { @delegate.DeleteRecursively(directory); }