2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* EventInfo (AddEventHandler): Throw TargetException if target is not cast
compatible.
* EventInfo (AddEventHandler): Throw InvalidOperationException if the
event add method is not visible.
* EventInfo (AddEventHandler): Throw TargetException if source is null
and the event is not static.
2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
* EventInfoTest.cs: Add test for cast incompatible type.
* EventInfoTest.cs: Add test for private event.
* EventInfoTest.cs: Add test for null target for non static
event.
svn path=/trunk/mcs/; revision=138772