RhinoMock tests void interface foo functions?

I am new to RhinoMock, have been doing government device testing so far.

How do you check for void functions?

Getting the following error while configuring wait

Expression does not create value

Basically, I want to check that a specific layout method is called a specific number of times.

Greetings

0


source to share


2 answers


You want to use LastCall.



http://ayende.com/projects/rhino-mocks/api/files/LastCall-cs.html

+2


source


Better yet, you can use the Expect.Call method with lambda:



Expect.Call(() => someVoidFunction());

      

0


source







All Articles