asp.net - NMocks2 Argument Syntax in Rhino Mocks? -


In NMocks2, you can create the result of a method that you do not know beforehand by hand

  Stub.On (AMC). Method (...). Any Aggregation () (Return value (...);  

My question is, does Rhino have the same mechanism, when you do not care about logic? I have a similar call I want to:

object objectIDontWantToRecreate = null; // will not be empty in reality object returns always = ...; expect call (fake object method (objectIDontWantToRecreate). Always back);

It is certain:

  Apache.col (mockObject.Method (empty)) .Next Group (). Return (Always Return)  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -