I was hoping to be able to see if it was read.
I saw a demo that had a custom built mock that defined the properties
like this:
public string FirstNameText
{
get
{
FirstNameTextGetCalled = true;
return FirstNameTextGetFakeResult;
}
set
{
FirstNameTextSetCalled = true;
FirstNameTextSetLastValue = value;
}
}
I was trying to see if I could get "FirstNameTextGetCalled" like
functionality without having to write the mock myself (ie using Rhino
Mocks).
> Stephen, If you specify PropertyBehavior, it behave like a property.
> That means that you can't assert on calls on it.
> If you want to check that it was set, you can check the value in it.
>