I am getting this error when I try to set a mock to have PropertyBehavior():
PropertyBehavior()
System.InvalidOperationException: System.InvalidOperationEx
I received this error when I tried to set an expectation on a non-virtual method.
mockedObject.Expect(a => a.NonVirtualMethod()).Returns(null);
The error went away when I made NonVirtualMethod virtual.