public void MainControllerShouldClearViolationListOnRunnerStarted() { Expect.Call(_projectModel.GetProjectFile()).Return(@"c:\test.calidus").Repeat.Times(1); Expect.Call(() => _violationList.Clear()).Repeat.Once(); Mocker.ReplayAll(); _controller = new MainController(_view, _projectModel, true, _projectManager, _ruleRunner, _violationList); _ruleRunner.Raise(x => x.Started += null, this, EventArgs.Empty); Mocker.VerifyAll(); }
private void _runner_Started(object source, EventArgs e) { _view.BeginWait(); _violationList.Clear(); }