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
End Function
End Class
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
If you liked this post ... here's more for you:
Published by
on Last updated