2009-07-27 Rodrigo Kumpera <rkumpera@novell.com>
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 27 Jul 2009 21:42:50 +0000 (21:42 -0000)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 27 Jul 2009 21:42:50 +0000 (21:42 -0000)
commitd6241c123d73e0b1531145597f8c3de184db837d
tree1c461bc5dc451c84dcf14e3797e62f19551d81ac
parent27f45f2fa577b14d9be3e6d4b40f4688e7967a48
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
mcs/class/corlib/System.Reflection/ChangeLog
mcs/class/corlib/System.Reflection/EventInfo.cs
mcs/class/corlib/Test/System.Reflection/ChangeLog
mcs/class/corlib/Test/System.Reflection/EventInfoTest.cs