//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldRefuseToUpgradeIfAnyOfTheStoresWereNotShutDownCleanly() throws java.io.IOException //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldRefuseToUpgradeIfAnyOfTheStoresWereNotShutDownCleanly() { File comparisonDirectory = _directory.directory("shouldRefuseToUpgradeIfAnyOfTheStoresWereNotShutDownCleanly-comparison"); removeCheckPointFromTxLog(_fileSystem, _databaseLayout.databaseDirectory()); _fileSystem.deleteRecursively(comparisonDirectory); _fileSystem.copyRecursively(_databaseLayout.databaseDirectory(), comparisonDirectory); PageCache pageCache = _pageCacheRule.getPageCache(_fileSystem); UpgradableDatabase upgradableDatabase = GetUpgradableDatabase(pageCache); try { NewUpgrader(upgradableDatabase, pageCache).migrateIfNeeded(_databaseLayout); fail("Should throw exception"); } catch (StoreUpgrader.UnableToUpgradeException) { // expected } verifyFilesHaveSameContent(_fileSystem, comparisonDirectory, _databaseLayout.databaseDirectory()); }