public void Save_should_announce_before_saving_the_project() { using (eventAggregator.GetMockRepository().Ordered()) { eventAggregator.Expect(ea => ea.Send(Arg.Is(projectController), Arg <SavingProject> .Is.Anything)); testProjectManager.Expect(tpm => tpm.SaveProject(Arg <TestProject> .Is.Anything, Arg <FileInfo> .Is.Anything)); } eventAggregator.Replay(); projectController.Save("projectName", NullProgressMonitor.CreateInstance()); eventAggregator.VerifyAllExpectations(); }