//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void backupIsValidIfAnySingleStrategyPasses_secondFails() throws org.neo4j.commandline.admin.CommandFailed //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void BackupIsValidIfAnySingleStrategyPassesSecondFails() { // given when(_firstStrategy.doBackup(any())).thenReturn(new Fallible <>(BackupStrategyOutcome.Success, null)); when(_secondStrategy.doBackup(any())).thenReturn(new Fallible <>(BackupStrategyOutcome.IncorrectStrategy, null)); // when _subject.performBackup(_onlineBackupContext); // then no exception }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void lifecycleIsRun() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void LifecycleIsRun() { // given _onlineBackupContext = new OnlineBackupContext(RequiredArguments(true), _config, ConsistencyFlags()); // when _subject.doBackup(_onlineBackupContext); // then verify(_backupStrategyImplementation).init(); verify(_backupStrategyImplementation).start(); verify(_backupStrategyImplementation).stop(); verify(_backupStrategyImplementation).shutdown(); }