//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void tearDown() public virtual void TearDown() { if (_neoStores != null) { _neoStores.close(); } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void after() public virtual void After() { if (_neoStores != null) { _neoStores.close(); } }
public virtual void Close() { lock (this) { if (_closeable) { _closeable = false; _neoStores.close(); } } }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldDelegateDeletionOptionToStores() public virtual void ShouldDelegateDeletionOptionToStores() { // GIVEN StoreFactory storeFactory = storeFactory(Config.defaults(), DELETE_ON_CLOSE); // WHEN _neoStores = storeFactory.OpenAllNeoStores(true); assertTrue(_fsRule.get().listFiles(_testDirectory.databaseDir()).length >= StoreType.values().length); // THEN _neoStores.close(); assertEquals(0, _fsRule.get().listFiles(_testDirectory.databaseDir()).length); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void after() public virtual void After() { _neoStores.close(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @After public void closeStore() public virtual void CloseStore() { _neoStores.close(); }