public void PredictGameScoreCommand_HappyPath() { // Arrange // Instantiate class under test. var viewModel = new MainWindowViewModel(_windowService); // Act // Call method under test. viewModel.PredictGameScoreCommand.Execute(null); // Assert // Assert results of call to method under test. A.CallTo(() => _windowService.PredictGameScore()).MustHaveHappenedOnceExactly(); }
private void PredictGameScore() { try { _windowService.PredictGameScore(); } catch (Exception ex) { _log.Error(ex.Message); throw; } }