I've got the following line, attempting to create a mock of a concrete type:
AddPropPersonalCOI = MockRepository.GenerateMock<SomeType>(ObjectFactory.GetInstance<paramType1>(), ObjectFactory.GetInstance<paramType2>());
Assert.IsNotNull(AddPropPersonalCOI.view);
I've actually stepped into the constructor in question, watched it execute, watched the view property get assigned from the value passed into the constructor (which I verified were not null), and yet the assert fails.
And yes, view is virtual
.
Anyone know what I'm doing wrong?