public void ItemInserted() { mock.Mockery mockery = new mock.Mockery(); IProjectView mockView = (IProjectView)mockery.NewMock(typeof(IProjectView)); mock.Expect.Exactly(2).On(mockView).GetProperty("DataPath").Will(mock.Return.Value(this._DataPath)); mock.Expect.Once.On(mockView).GetProperty("Details").Will(mock.Return.Value(this.dv)); ProjectPresenter presenter = new ProjectPresenter(mockView); presenter.ItemInserted(null, null); Assert.That(this.dv.Visible, Is.False, "Details view should be invisible"); mockery.VerifyAllExpectationsHaveBeenMet(); }