Actually this happens when one of your mocked objects is mocking a method that returns something and your mocking doesn't return anything. Eeeeh - that was quite tricky. Got it?
Here is an example:
When I mock this method:
by using the following code to do the mockPublic Class FacadeObject
Function CreateSomeThing(ByVal aName As String) As Long
an exception of RemotingException (ByRef value type parameter cannot be null) will be thrown.Expect.Once.On(m_mockadFacadeObject).Method("CreateSomeThing")
Here is another description that you might find easier to understand
Published byon Last updated