public void SaveProjectAs_CanBeCanceled()
        {
            MockRepository mocks = new MockRepository();
            IProjectView view = mocks.StrictMock<IProjectView>();
            Project prj = new Project("Example Project");
            IProjectPresenter presenter = new ProjectPresenter(prj, view);

            Expect.Call(view.Title).Return(prj.Name);
            Expect.Call(view.Ask(null, null)).Return("a");

            mocks.ReplayAll();
            Assert.IsFalse(presenter.SaveProjectAs());
            mocks.VerifyAll();
        }
        public void SaveProjectAs_CanBeCanceled_AAA()
        {
            //Arrange
            IProjectView view = MockRepository.GenerateStrictMock<IProjectView>();
            Project prj = new Project("Example Project");
            IProjectPresenter presenter = new ProjectPresenter(prj, view);

            view.Expect(v => v.Title).Return(null);
            view.Expect(v => v.Ask(Arg<string>.Is.Null, Arg<string>.Is.Null)).Return(null);

            //Act
            bool isProjectSave = presenter.SaveProjectAs();

            //Assert
            Assert.IsFalse(isProjectSave);
            view.VerifyAllExpectations();
        }