OK, I ended up creating a private method in the test class:

private string ReturnNullEmptyException(string code)
{
   switch (code)

             {
                case CODE_NULL:
                      return null;
                      break;
                .....
             } 

}

And then I have used the .Do method to call it. Kind of saved the day :) 

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhinomocks?hl=en.

Reply via email to