//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: public static void main(String[] args) throws java.io.IOException public static void Main(string[] args) { Path homeDir = Paths.get(Neo4jHome); Path configDir = Paths.get(Neo4jConf); bool debug = !string.ReferenceEquals(Neo4jDebug, null); using (RealOutsideWorld outsideWorld = new RealOutsideWorld()) { (new AdminTool(CommandLocator.fromServiceLocator(), BlockerLocator.fromServiceLocator(), outsideWorld, debug)).Execute(homeDir, configDir, args); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void closeFileSystemOnClose() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CloseFileSystemOnClose() { RealOutsideWorld outsideWorld = new RealOutsideWorld(); FileSystemAbstraction fileSystemMock = mock(typeof(FileSystemAbstraction)); outsideWorld.FileSystemAbstraction = fileSystemMock; outsideWorld.Dispose(); verify(fileSystemMock).close(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void closeFilesystemOnExit() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CloseFilesystemOnExit() { RealOutsideWorld outsideWorld = new RealOutsideWorld(); FileSystemAbstraction fileSystemMock = mock(typeof(FileSystemAbstraction)); outsideWorld.FileSystemAbstraction = fileSystemMock; SystemExitRule.expectExit(0); outsideWorld.Exit(0); verify(fileSystemMock).close(); }