//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void makeSureBackupCanBePerformedFromAnyInstance() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void MakeSureBackupCanBePerformedFromAnyInstance() { foreach (CoreClusterMember db in _cluster.coreMembers()) { // Run backup DbRepresentation beforeChange = DbRepresentation.of(CreateSomeData(_cluster)); string[] args = BackupArguments(BackupAddress(_cluster), _backupsDir, "" + Db.serverId()); assertEventually(() => runBackupToolFromOtherJvmToGetExitCode(ClusterRule.clusterDirectory(), args), equalTo(0), 5, TimeUnit.SECONDS); // Add some new data DbRepresentation afterChange = DbRepresentation.of(CreateSomeData(_cluster)); // Verify that old data is back DbRepresentation backupRepresentation = DbRepresentation.of(DatabaseLayout.of(_backupsDir, "" + Db.serverId()).databaseDirectory(), Config); assertEquals(beforeChange, backupRepresentation); assertNotEquals(backupRepresentation, afterChange); } }