Commit Graph
196 Commits
Author SHA1 Message Date
Rodrigo Kumpera 13273ae066 2010-06-08 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Fix test for variant iface.

svn path=/trunk/mcs/; revision=159158
2010-06-18 22:18:47 +00:00
Rodrigo Kumpera d4241184ec 2010-04-20 Rodrigo Kumpera <[email protected]>
* BinderTest.cs: Add tests for #325306.

svn path=/trunk/mcs/; revision=155829
2010-04-20 17:34:39 +00:00
Zoltan Varga 0acf9469fb Fix warnings.
svn path=/trunk/mcs/; revision=155701
2010-04-19 08:41:42 +00:00
Rodrigo Kumpera eb27581675 2010-04-08 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Add tests for #594942.

svn path=/trunk/mcs/; revision=155113
2010-04-09 01:07:00 +00:00
Rodrigo Kumpera 6b796ebc40 2010-04-01 Rodrigo Kumpera <[email protected]>
* AssemblyTest.cs: Fix one more tests under v4.

svn path=/trunk/mcs/; revision=154657
2010-04-01 17:37:01 +00:00
Rodrigo Kumpera dddf45217e 2010-03-25 Rodrigo Kumpera <[email protected]>
*AssemblyTest.cs: Fix one more tests under v4.

svn path=/trunk/mcs/; revision=154230
2010-03-25 23:41:56 +00:00
Rodrigo Kumpera 4321e0f72c 2010-03-24 Rodrigo Kumpera <[email protected]>
*AssemblyTest.cs: Fix some tests under v4.

svn path=/trunk/mcs/; revision=154178
2010-03-24 22:27:44 +00:00
Rodrigo Kumpera de88b60f4d 2010-03-11 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Remove invalid assert.

svn path=/trunk/mcs/; revision=153470
2010-03-11 15:01:08 +00:00
Rodrigo Kumpera 756c02655b 2010-02-26 Rodrigo Kumpera <[email protected]>
* AssemblyTest.cs: Fix test under v4.

	* MonoGenericClassTest.cs: Ditto.

svn path=/trunk/mcs/; revision=152598
2010-02-26 23:08:15 +00:00
Rodrigo Kumpera 43fbd5f07e 2010-02-10 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Tests for default value.

svn path=/trunk/mcs/; revision=151267
2010-02-10 21:54:29 +00:00
Rodrigo Kumpera b3765dd33d 2010-02-10 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Tests for custom attributes from PropertyInfo::GetIndexParameters.

svn path=/trunk/mcs/; revision=151242
2010-02-10 16:46:15 +00:00
Rodrigo Kumpera b211becd90 2010-02-05 Rodrigo Kumpera <[email protected]>
* PropertyInfoTest.cs: Make tests for GetIndexParameters() work.

svn path=/trunk/mcs/; revision=150958
2010-02-05 21:18:19 +00:00
Rodrigo Kumpera 08932bc0f6 2010-02-05 Rodrigo Kumpera <[email protected]>
*  MethodInfoTest.cs: New test for GetParameters() returning the
	*  interned array.

	* PropertyInfoTest.cs: New tests for GetIndexParameters().

svn path=/trunk/mcs/; revision=150946
2010-02-05 20:21:51 +00:00
Rodrigo Kumpera 9ab2a13d85 2010-01-19 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Add a test for Invoke with generic variant
	interfaces.

svn path=/trunk/mcs/; revision=149839
2010-01-19 20:50:59 +00:00
Rodrigo Kumpera a43bd91ef8 2010-01-05 Rodrigo Kumpera <[email protected]>
* ParameterInfo.cs (DefaultProperty): Add support for DateTime defaults.

	* ParameterInfo.cs: Implements RawDefaultProperty.

2010-01-05 Rodrigo Kumpera  <[email protected]>

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

2010-01-05 Rodrigo Kumpera  <[email protected]>

	* DateTimeConstantAttribute.cs: Add internal Ticks property.

svn path=/trunk/mcs/; revision=149083
2010-01-05 16:44:55 +00:00
Rodrigo Kumpera 2786e62505 2009-12-17 Rodrigo Kumpera <[email protected]>
* MonoGenericClassTest.cs: Test for some corner cases of
	GetMethod that must work under compiler context.

svn path=/trunk/mcs/; revision=148736
2009-12-17 22:57:41 +00:00
Rodrigo Kumpera 2ea50cf778 2009-12-09 Rodrigo Kumpera <[email protected]>
* MethodBaseTest.cs: Remove all NET_2_0 directives. Add test
	for GetCurrentMethod and generics.

svn path=/trunk/mcs/; revision=147911
2009-12-09 13:33:09 +00:00
Rodrigo Kumpera 9a565deb51 2009-12-08 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Add some tests for MS compatible behavior of
	MakeGenericMethod.

svn path=/trunk/mcs/; revision=147856
2009-12-08 14:34:29 +00:00
Sebastien Pouliot a976fb2ed7 In Test/System.Reflection:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* MethodBaseTest.cs: Add new, working, test for non-generic
	GetMethodFromHandle. Add test case to show generic overload
	behave exactly the same when no second RuntimeMethodHandle is
	provided. Remove [Category("NotWorking")] on existing test case.

In System.Reflection:
2009-10-18  Sebastien Pouliot  <[email protected]>

	* MethodBase.cs: Reduce code duplication and the number of direct
	calls to icalls (affecting the number of SecuritySafeCritical in
	Moonlight)


svn path=/trunk/mcs/; revision=144335
2009-10-18 23:52:13 +00:00
Rodrigo Kumpera 8aba75ce1f 2009-08-07 Rodrigo Kumpera <[email protected]>
* MonoGenericClass.cs: Implement almost all methods required
	to move to inherit from System.Type. The only missing methods
	are Is(Array|Pointer|ByRef)Impl and GetElementType since the
	runtime still generates weird instances for generics instances
	of non-SRE types with SRE types as generic arguments.

2009-08-07 Rodrigo Kumpera  <[email protected]>

	* MonoGenericClassTest.cs: Test for methods that must
	throw.

svn path=/trunk/mcs/; revision=139596
2009-08-07 23:39:30 +00:00
Rodrigo Kumpera 5d43739e8a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MonoGenericClassTest.cs: New file.

svn path=/trunk/mcs/; revision=139381
2009-08-05 01:08:15 +00:00
Zoltan Varga 295d696d9b 2009-07-30 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add a test for #525733.

svn path=/trunk/mcs/; revision=139055
2009-07-30 11:20:57 +00:00
Rodrigo Kumpera 5665bc31c9 2009-07-27 Rodrigo Kumpera <[email protected]>
* Assembly.cs (GetType): Throw if name is empty.

2009-07-27 Rodrigo Kumpera  <[email protected]>

	* AssemblyTest.cs: Add test for empty string passed to
	Assembly::GetType.

svn path=/trunk/mcs/; revision=138780
2009-07-28 02:00:05 +00: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
Gert Driesen 3b86dc3ee4 * BinderTests.cs: Modified SelectMethod_ByRef and BindToMethod_ByRef
to compile on net_1_1 profile. Added tests for SelectMethod and
BindToMethod with params arguments, currently marked NotWorking.

svn path=/trunk/mcs/; revision=138186
2009-07-19 15:08:43 +00:00
Raja R Harinath 973dd2725e * BinderTests.cs (SelectMethod_ByRef, BindToMethod_ByRef): Disable
in net_1_1 profile.

svn path=/trunk/mcs/; revision=137883
2009-07-14 17:59:13 +00:00
Gert Driesen 79490f1be9 * BinderTest.cs: Added SelectMethod/BindToMethod tests for methods
with byref arguments.
* Binder.cs: Only allow a type to match its byref version for
BindToMethod (and not for SelectMethod).
* TypeTest.cs: Enabled test that was failing due to regression.

svn path=/trunk/mcs/; revision=137753
2009-07-12 13:21:19 +00:00
Zoltan Varga bcb5152087 2009-06-20 Zoltan Varga <[email protected]>
* *.cs: Convert all tests to new-style nunit classes/methods.

svn path=/trunk/mcs/; revision=136551
2009-06-20 21:05:16 +00:00
Zoltan Varga ec0376fb81 2009-06-12 Zoltan Varga <[email protected]>
* ParameterInfoTest.cs: Add a test for #512330.

svn path=/trunk/mcs/; revision=135966
2009-06-12 00:52:45 +00:00
Sebastien Pouliot 82df4bb3d3 2009-05-03 Sebastien Pouliot <[email protected]>
* MethodInfoTest.cs: Add test cases from Joachim Ante for bug
	#500385.


svn path=/trunk/mcs/; revision=133428
2009-05-03 13:41:29 +00:00
Zoltan Varga 542acfa591 In class/corlib/System.Reflection/
2009-03-26  Zoltan Varga  <[email protected]>

	* ParameterInfoTest.cs: Add a test for #488383.

In class/corlib/System/

2009-03-26  Zoltan Varga  <[email protected]>

	* Environment.cs: Bump corlib version.

In class/corlib/Test/System.Reflection/

2009-03-26  Zoltan Varga  <[email protected]>

	* ParameterInfoTest.cs: Add a test for #488383.

svn path=/trunk/mcs/; revision=130298
2009-03-26 14:32:42 +00:00
Gonzalo Paniagua Javier c91a6cee78 Patch from Matthew Metnestsky
svn path=/trunk/mcs/; revision=130076
2009-03-23 17:36:28 +00:00
Zoltan Varga 2ac318ebfe 2009-03-11 Zoltan Varga <[email protected]>
* BinderTests.cs: Add a test for #484294.

svn path=/trunk/mcs/; revision=129070
2009-03-11 15:14:36 +00:00
Jb Evain 178a9e40bf 2009-02-21 Jb Evain <[email protected]>
* BinderTests.cs: add test for bug #471257, where Type.InvokeMember
	calls Binder.BindToMethod will a null args.


svn path=/trunk/mcs/; revision=127627
2009-02-21 15:30:22 +00:00
Zoltan Varga 511ddcf206 2009-02-04 Zoltan Varga <[email protected]>
* MethodBaseTest.cs: Make a test quiet.

svn path=/trunk/mcs/; revision=125630
2009-02-04 01:23:29 +00:00
Rodrigo Kumpera 6d65a06aea 2008-02-03 Rodrigo Kumpera <[email protected]>
* MonoMethod.cs: Fix the 1.1 build.

2008-02-03  Rodrigo Kumpera  <[email protected]>

	* MethodInfoTest.cs: Fix the 1.1 build.

svn path=/trunk/mcs/; revision=125456
2009-02-03 02:49:28 +00:00
Rodrigo Kumpera 3e67cda6e2 2008-02-02 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Test for non primitive structs.

svn path=/trunk/mcs/; revision=125416
2009-02-02 21:56:39 +00:00
Rodrigo Kumpera 9835f559cc 2008-02-02 Rodrigo Kumpera <[email protected]>
* MethodInfoTest.cs: Test for #409583.

svn path=/trunk/mcs/; revision=125410
2009-02-02 21:02:39 +00:00
Rodrigo Kumpera 43b32870b2 2008-11-17 Rodrigo Kumpera <[email protected]>
* FieldInfoTest.cs: Test FieldInfo::GetValue on a constant of an open
	generic type.

svn path=/trunk/mcs/; revision=119077
2008-11-17 18:51:40 +00:00
Rodrigo Kumpera c8cb92719e 2008-11-11 Rodrigo Kumpera <[email protected]>
* ModuleTest.cs : Add test for ResolveMethod with a methodspec
	token.

svn path=/trunk/mcs/; revision=118543
2008-11-11 20:14:55 +00:00
Zoltan Varga b8d9e16060 2008-10-10 Zoltan Varga <[email protected]>
* AssemblyTest.cs (LoadWithPartialName): Fix this test after the
	'default' -> 'net_1_1' profile change.

svn path=/trunk/mcs/; revision=115476
2008-10-10 18:28:49 +00:00
Gonzalo Paniagua Javier 1504a3f8f0 2008-10-02 Gonzalo Paniagua Javier <[email protected]>
* Test/System.Reflection/ConstructorInfoTest.cs: enable abstract class
	test.

	* System.Reflection/MonoMethod.cs: throw a MemberAccessException when
	trying to invoke a constructor creating an instance of an abstract
	class. Return null when an instance of an object was passed as a
	parameter when invoking a .ctor.
	Fixes bug #324185.


svn path=/trunk/mcs/; revision=114720
2008-10-02 22:09:26 +00:00
Zoltan Varga 82dff9c9dd 2008-09-08 Zoltan Varga <[email protected]>
* FieldInfoTest.cs (SetValueOpenGeneric): Fix copy-paste error.

svn path=/trunk/mcs/; revision=112505
2008-09-08 14:39:31 +00:00
Zoltan Varga 6a01c8ee09 2008-09-07 Zoltan Varga <[email protected]>
* FieldInfoTest.cs: Add tests for #424077.

svn path=/trunk/mcs/; revision=112457
2008-09-07 14:11:28 +00:00
Rodrigo Kumpera d2dc8d4939 In .:
2008-06-30  Rodrigo Kumpera <[email protected]>

	* MethodBase.cs: Fix the 1.0 build.


svn path=/trunk/mcs/; revision=106935
2008-06-30 22:20:44 +00:00
Rodrigo Kumpera ef733195ac In .:
2008-06-27  Rodrigo Kumpera <[email protected]>

	* MethodBase.cs: Added tests for GetMethodFromToken.


svn path=/trunk/mcs/; revision=106775
2008-06-27 20:45:31 +00:00
Gert Driesen 54f34580ec * PropertyInfoTest.cs: Added test for bug #399985.
svn path=/trunk/mcs/; revision=105777
2008-06-13 16:46:38 +00:00
Gert Driesen 7ffcafb7cd * corlib_test.dll.sources: Addd MethodBaseTest.cs.
* TypeTest.cs: Added GetType, GetTypeArray and GetTypeFromHandle tests 
for argument checks.
* Type.cs: Modifies exceptions to match MS. Changed GetTypeFromHandle
on 1.0 profile to throw ArgumentException when handle is invalid,
* FieldInfoTest.cs: Added tests for GetFieldFromHandle.
* MethodBaseTest.cs: Added tests for GetMethodFromHandle.

svn path=/trunk/mcs/; revision=102993
2008-05-12 10:50:40 +00:00
Zoltan Varga a2e7744c3b 2008-04-16 Zoltan Varga <[email protected]>
* BinderTests.cs: Applied patch from Yves Bastide ([email protected]). Add 
	tests for converting integers to enums.

svn path=/trunk/mcs/; revision=100864
2008-04-16 12:53:54 +00:00