Hi,
I've encountered odd difficulties getting properties to work.
When I execute the following code in my unit test it always throws the exception.
I'm also getting sporadic problems with other properties setup the same way. My debug.writeline output inidicate sometimes the property is set up sometimes it ain't.
MockManager.Init();
MockObject tvMock = MockManager.MockObject(typeof(TV));
tvMock.ExpectGetAlways("TVGuid", Guid.NewGuid());
TV tvObj = (TV)tvMock.Object;
if (tvObj.TVGuid == Guid.Empty)
throw new OperationCanceledException("Aaaargh");
I'm running VS2005 and TypeMock 3.0.1.1.
Kerry