Use simple call like this: testObject.voidMethod(); // don't use "expect" for voids expectLastCall(). Times(3); // use this for expectations And don't forget reply() after all you expectations and verify() after running tested code.
Sorry I had a mistake but it doesn't change behavior. VoidMethod is called from aMethod and it's a private method. Anyway I expect call of voidMethod from aMethod.
If even voidMethod would public, whether testObject.voidMethod(); relates to my testing aMethod? – Ademiban Dec 8 '11 at 7:46.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.