public async Task EnableSshOptimisticCheckSuccessAsync() { sshKeyLoader.LoadOrCreateAsync().Returns(fakeKey); await sshManager.EnableSshAsync(fakeGamelet, fakeAction); sshKnownHostsWriter.Received().CreateOrUpdate(fakeGamelet); await remoteCommand.Received().RunWithSuccessAsync( new SshTarget(fakeGamelet), Arg.Any <string>()); await gameletClient.DidNotReceiveWithAnyArgs().EnableSshAsync(null, null); }