The following exception is thrown when some mock's
method returns enum type while recording state:
System.Runtime.Remoting.RemotingException : Byref
value type parameter cannot be null.
at
System.Runtime.Remoting.Proxies.RealProxy.ValidateRetur
nArg(Object arg, Type paramType)
at
System.Runtime.Remoting.Proxies.RealProxy.PropagateOu
tParameters(IMessage msg, Object[] outArgs, Object
returnValue)
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturn
Message(IMessage reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvok
e(MessageData& msgData, Int32 type)
at
Weg.Applications.ENS.Model.IQualquer.RetornarEnum()
at
Weg.Applications.ENS.Model.TestListaParametros.Create
Enrolamento(EnumEnrolamento valor) in
C:\Projetos\ENS\Model\test\Entities\TestListaParametros
.vb:line 37
at
Weg.Applications.ENS.Model.TestListaParametros.SetUp
() in
C:\Projetos\ENS\Model\test\Entities\TestListaParametros
.vb:line 20
Thanks!
Celio C. Jr.
ccidral@expresso.com.br
Logged In: YES
user_id=215483
This is effectively a duplicate of bug 795039, and is fixed
with the same code.
Logged In: YES
user_id=215483
Fixed in CVS. Ready to close.
Logged In: YES
user_id=1368752
The same exception occurs when working with structures as
return types (e.g. System.TimeSpan) in RC1 of EasyMock.
mockControl.ExpectedReturn(mockObj.Method, new
TimeSpan(1000)).
System.Runtime.Remoting.RemotingException : Byref value
type parameter cannot be null.
at
System.Runtime.Remoting.Proxies.RealProxy.ValidateReturn
Arg(Object arg, Type paramType)
at
System.Runtime.Remoting.Proxies.RealProxy.PropagateOut
Parameters(IMessage msg, Object[] outArgs, Object
returnValue)
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturn
Message(IMessage reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(MessageData& msgData, Int32 type)
Regards / Jakob
Logged In: NO
Yes, it would occur in RC1 too. There hasn't been a release
since I fixed the code.
Jon