Commit Graph
7 Commits
Author SHA1 Message Date
Marek Safar afa79435aa Update for mobile profile 2013-02-07 16:34:21 +01:00
Rodrigo Kumpera d3d3ba84b9 2009-07-27 Rodrigo Kumpera <[email protected]>
* 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
2009-07-27 21:43:13 +00:00
Rodrigo Kumpera d6241c123d 2009-07-27 Rodrigo Kumpera <[email protected]>
* 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
2009-07-27 21:42:50 +00:00
Andreas N fa38076273 2008-06-05 Andreas Nahr <[email protected]>
* StringTest.cs: Move Split Tests to single location
	* *.cs: Disable expected warnings

svn path=/trunk/mcs/; revision=104962
2008-06-05 08:49:52 +00:00
Gert Driesen 165e7a7b5b * MonoCustomAttrs.cs: In IsDefined, throw ArgumentNullException if
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
2007-08-16 20:11:53 +00:00
Eyal Alalouf f65669f34f Port NUnit tests to TARGET_JVM configuration.
svn path=/trunk/mcs/; revision=73714
2007-03-05 14:57:05 +00:00
Ben Maurer 1b0b0cc597 In Test/System.Reflection:
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
2005-05-07 15:24:06 +00:00