Nullable types and raising events in Rhino Mocks

32 views
Skip to first unread message

Román Fresneda Quiroga

unread,
Jun 14, 2012, 8:58:34 AM6/14/12
to rhino...@googlegroups.com

Hi Ayende

 Found this whilst trying to raise an event in a unit test

 I went ahead and opened Rhino.Mocks in Reflector and found this :


The problem is highlighted, the check for IsValueType returns true for nullable types hence null is not accepted. Apparently, using Nullable.GetUnderlyingType would fix the problem, but I don’t know how to provide you with a patch.

 If you want more details I can provide you with a repro case.

 Kind regards,

Roman


Reply all
Reply to author
Forward
0 new messages