//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldFailToUnbindLiveDatabase() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldFailToUnbindLiveDatabase() { // given CreateClusterStateDir(_fs); UnbindFromClusterCommand command = new UnbindFromClusterCommand(_homeDir, _confDir, _outsideWorld); FileLock fileLock = CreateLockedFakeDbDir(_homeDir); try { // when command.Execute(DatabaseNameParameter(GraphDatabaseSettings.DEFAULT_DATABASE_NAME)); fail(); } catch (CommandFailed e) { // then assertThat(e.Message, containsString("Database is currently locked. Please shutdown Neo4j.")); } finally { fileLock.release(); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: //ORIGINAL LINE: protected void releaseLock() throws java.io.IOException protected internal virtual void ReleaseLock() { StoreLockFileLock.release(); StoreLockFileLock = null; }