but when u replace the XPBaseObject with another abstract class that inherits XPbaseObject then u should do
in order not to fail
Please explain. All you are doing is changing XPBaseObject to another class and the same code doesn't work?
Also i have some more questions
1)Does the Mock.GetCallCount method works for properties also? It will be most usefull if it was
Just add "set_" or "get_" to the property name, for example to know that property Value was set twice and gotten (get) 3 times do
Although perhaps helper methods will make it easier to do. Should I add this as a feature request?
2)How to now to which value a property is set
I am not sure that I understand the question but in testing you can do two things:
1. actually test the Property:
2. make sure that an expected value was set