* EventInfo (RemoveEventHandler): Throw InvalidOperationException if the
event remove method is not visible.
2009-07-27 Rodrigo Kumpera <[email protected]>
* EventInfoTest.cs: Add test for private event and
RemoveEventHandler.
svn path=/trunk/mcs/; revision=138773
* 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 <[email protected]>
* 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
attributeType is null to avoid a SIGSEGV (and match MS). Only partial
fix for bug #82431 on 1.0 profile; it fully fixes the problem for the
1.0 profile, but more changes (in the runtime) are required for the
2.0 profile. Added a FIXME explaining the problem.
* TypeTest.cs: Improved test for GetCustomAttributes, and avoid
dependency on order of attributes. Split IsDefined test and improved
part for bug #82431.
* AssemblyTest.cs: Added IsDefined test with null value for
attributeType argument.
* ModuleTest.cs: Same. Remove use of deprecated Assertion class, code
formatting and fixed line endings.
* ParameterInfoTest.cs: Same. Remove use of deprecated Assertion class
and code formatting.
* MethodInfoTest.cs: Same.
* EventInfoTest.cs: Same. Code formatting.
* FieldInfoTest.cs: Same. Code formatting.
* PropertyInfoTest.cs: Same. Improved coverage of GetAccessors.
Improved tests for GetCustomAttributes. Code formatting.
* TypeBuilderTest.cs: Added IsDefined test with null value for
attributeType argument.
svn path=/trunk/mcs/; revision=84239
2005-05-07 Ben Maurer <[email protected]>
* EventInfoTest.cs: New file. Has a test case for #64191.
In System.Reflection:
2005-05-07 Ben Maurer <[email protected]>
* MonoEvent.cs (Get*Method): Handle nonPublic. Fixes#64191.
svn path=/trunk/mcs/; revision=44199