Commit Graph
221 Commits
Author SHA1 Message Date
Rodrigo Kumpera 124975872a Add regression test for #626441.
2010-07-29 Rodrigo Kumpera  <[email protected]>

	* MethodBuilderTest.cs: Add test for #626441.
2010-07-29 16:07:05 -03:00
Miguel de Icaza 1c1baca891 2010-07-15 Miguel de Icaza <[email protected]>
* FieldBuilderTest.cs: Add new test that exercises encoding
	datetime constants with SetConstant.

svn path=/trunk/mcs/; revision=160401
2010-07-15 04:51:01 +00:00
Rodrigo Kumpera 9e229128b2 2010-06-21 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilderTest.cs: Fix test
	under v4.

svn path=/trunk/mcs/; revision=159264
2010-06-21 13:17:32 +00:00
Zoltan Varga 245d910458 2010-06-15 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Disable the TestGlobalMethods () test since it's been failing
	for a long time.

svn path=/trunk/mcs/; revision=158939
2010-06-15 11:37:29 +00:00
Jb Evain 11ef995628 2010-05-27 Jb Evain <[email protected]>
* EnumBuilderTest.cs: add test for .net_4_0's GetEnumUnderlyingType.


svn path=/trunk/mcs/; revision=158020
2010-05-27 11:39:31 +00:00
Rodrigo Kumpera 6484e54dbc 2010-05-13 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Fix test not to depend
	on interface order.

svn path=/trunk/mcs/; revision=157343
2010-05-14 00:54:54 +00:00
Rodrigo Kumpera 2b093308da 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Enable a bunch of asserts.
	They regression test #331126.

svn path=/trunk/mcs/; revision=155833
2010-04-20 19:29:48 +00:00
Rodrigo Kumpera 417844ad07 2010-04-20 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Slay all 1.0 code.

svn path=/trunk/mcs/; revision=155831
2010-04-20 19:29:21 +00:00
Rodrigo Kumpera e7a1fe06db 2010-04-13 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Regression test for #422113.

svn path=/trunk/mcs/; revision=155408
2010-04-14 16:43:36 +00:00
Rodrigo Kumpera c8d15975e1 2010-04-09 Rodrigo Kumpera <[email protected]>
* MethodBuilderTest.cs: Regression test for #591226.

svn path=/trunk/mcs/; revision=155190
2010-04-10 01:57:29 +00:00
Rodrigo Kumpera 5e704298ab 2010-04-08 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Regression test for #591225.

svn path=/trunk/mcs/; revision=155116
2010-04-09 02:38:32 +00:00
Rodrigo Kumpera 8a673bd160 2010-04-08 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Regression test for #594728.

svn path=/trunk/mcs/; revision=155054
2010-04-08 15:16:43 +00:00
Rodrigo Kumpera a44422d2b8 2010-04-01 Rodrigo Kumpera <[email protected]>
* ModuleBuilderTest.cs (TestGlobalMethods): Improve test.

svn path=/trunk/mcs/; revision=154662
2010-04-01 17:37:44 +00:00
Zoltan Varga b8f65530e3 2010-03-30 Zoltan Varga <[email protected]>
* ModuleBuilderTest.cs: Add a test for #592215.

svn path=/trunk/mcs/; revision=154487
2010-03-30 20:11:09 +00:00
Rodrigo Kumpera 280fce3bf7 2010-03-26 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetReferencedAssemblies
	and GetLoadedModules.

2010-03-26 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilderTest.cs: Test GetReferencedAssemblies
	and GetLoadedModules.

svn path=/trunk/mcs/; revision=154311
2010-03-26 19:15:31 +00:00
Rodrigo Kumpera bb85d0c720 2010-03-25 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetModule(s).

2010-03-25 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilderTest.cs: Add test for v4 GetModule(s).

svn path=/trunk/mcs/; revision=154232
2010-03-25 23:42:14 +00:00
Rodrigo Kumpera 6493d5e8ba 2010-03-25 Rodrigo Kumpera <[email protected]>
* AssemblyBuilder.cs: Implement v4 GetType.

2010-03-25 Rodrigo Kumpera  <[email protected]>

	* AssemblyBuilderTest.cs: Add test for v4 GetType and
	fix other test to not be broken.

svn path=/trunk/mcs/; revision=154231
2010-03-25 23:42:05 +00:00
Rodrigo Kumpera 635f6a8d11 2010-03-24 Rodrigo Kumpera <[email protected]>
* DerivedTypesTests.cs: Fix some tests under v4.

svn path=/trunk/mcs/; revision=154177
2010-03-24 22:27:36 +00:00
Rodrigo Kumpera 45562016b5 2010-03-23 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInst.cs (ContainsGenericParameters): Check
	the base_method first.

2010-03-23 Rodrigo Kumpera  <[email protected]>

	* MethodOnTypeBuilderInstTest.cs: Add Test for
	* ContainsGenericParameters.

svn path=/trunk/mcs/; revision=154062
2010-03-23 14:37:36 +00:00
Rodrigo Kumpera 105b73b817 2010-03-11 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: New tests for GetMethod, GetConstructor
	* and GetField.

svn path=/trunk/mcs/; revision=153469
2010-03-11 15:01:00 +00:00
Zoltan Varga 6f349cf685 2010-02-02 Zoltan Varga <[email protected]>
* DynamicMethodTest.cs: Add a test for #575955.

svn path=/trunk/mcs/; revision=150745
2010-02-02 22:41:08 +00:00
Zoltan Varga 1b5ac77895 2010-01-30 Zoltan Varga <[email protected]>
* CustomAttributeBuilderTest.cs: Add a test for #574353.

svn path=/trunk/mcs/; revision=150598
2010-01-30 19:58:45 +00:00
Rodrigo Kumpera b79d6b79ab 2010-01-21 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Add tests for #572660.

svn path=/trunk/mcs/; revision=150007
2010-01-21 19:37:34 +00:00
Zoltan Varga 5fd6e5a087 2010-01-03 Zoltan Varga <[email protected]>
* ILGeneratorTest.cs: Add a test for #564411.

svn path=/trunk/mcs/; revision=148982
2010-01-03 15:06:56 +00:00
Rodrigo Kumpera 2f1672ee67 2009-12-16 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Add tests for #565127.

svn path=/trunk/mcs/; revision=148577
2009-12-16 19:46:01 +00:00
Zoltan Varga 07d1a855d8 2009-12-16 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add a test for #565117.

svn path=/trunk/mcs/; revision=148563
2009-12-16 12:48:01 +00:00
Jb Evain 6ffe4508e2 2009-12-09 Jb Evain <[email protected]>
* ILGeneratorTest.cs: add a test for Emit(OpCode,LocalBuilder)
	when the opcode is not related to locals.


svn path=/trunk/mcs/; revision=147939
2009-12-09 19:26:51 +00:00
Sebastien Pouliot 0c1cacf8e0 In System.Reflection.Emit:
2009-10-30  Sebastien Pouliot  <[email protected]>

	* MethodBuilder.cs: Add missing 'names' validations in 
	DefineGenericParameters

In Test/System.Reflection.Emit:
2009-10-30  Sebastien Pouliot  <[email protected]>

	* MethodBuilderTest.cs: Add (copy from TypeBuilderTest) test 
	cases for two DefineGenericParameters


svn path=/trunk/mcs/; revision=145118
2009-10-30 20:12:20 +00:00
Sebastien Pouliot 1bcf41ee8e In System.Reflection.Emit:
2009-10-29  Sebastien Pouliot  <[email protected]>

	* ModuleBuilder.cs: Add missing 'className' validations in GetType
	* TypeBuilder.cs: Add missing 'names' validations in 
	DefineGenericParameters

In Test/System.Reflection.Emit:
2009-10-29  Sebastien Pouliot  <[email protected]>

	* ModuleBuilderTest.cs: Add test cases for GetType overloads
	* TypeBuilderTest.cs: Remove NotWorking from two DefineGenericParameters test case.


svn path=/trunk/mcs/; revision=145013
2009-10-29 12:51:36 +00:00
Sebastien Pouliot dfad48f344 In System.Reflection.Emit:
2009-10-24  Sebastien Pouliot  <[email protected]>

	* AssemblyBuilder.cs: For Silverlight only AssemblyBuilderAccess.Run
	is supported (browser-side) but we still allow other values when
	compiling (e.g. smcs) outside the browser (wo coreclr)
	* TypeBuilder.cs (GetConstructor): Fix validations

In Test/System.Reflection.Emit:
2009-10-24  Sebastien Pouliot  <[email protected]>

	* TypeBuilderTest.cs: Validation test cases for GetConstructor


svn path=/trunk/mcs/; revision=144791
2009-10-24 15:45:09 +00:00
Rodrigo Kumpera 79436b9aa4 2009-09-02 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: Test for #536243.

svn path=/trunk/mcs/; revision=141177
2009-09-02 20:50:08 +00:00
Rodrigo Kumpera e138e70adc 2009-08-07 Rodrigo Kumpera <[email protected]>
* DynamicMethodTest.cs: Add regression test for bug #529238.

svn path=/trunk/mcs/; revision=139585
2009-08-07 19:28:02 +00:00
Rodrigo Kumpera e5d7850ed8 2009-08-06 Rodrigo Kumpera <[email protected]>
* Environment.cs: Bump corlib version.

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

	* MonoGenericClass.cs (InflateType): Add support to inflate
	generic method arguments.

	* MonoGenericClass.cs (GetMethod): Remove restriction
	with generic methods.

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

	* MethodOnTypeBuilderInstTest.cs: Add tests for
	generic method instances over generic type instances.

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

	* MethodBuilder.cs: Mark generic_params internal.

	* MethodOnTypeBuilderInst.cs: Add fields to support
	inflated generic methods. Implement generics related
	methods.

svn path=/trunk/mcs/; revision=139534
2009-08-07 01:56:45 +00:00
Rodrigo Kumpera 211e1e5c9a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInstTest.cs: Really fix the test.

svn path=/trunk/mcs/; revision=139377
2009-08-05 00:07:42 +00:00
Rodrigo Kumpera 1376376f3a 2009-08-04 Rodrigo Kumpera <[email protected]>
* MethodOnTypeBuilderInstTest.cs: Pointer inflation
	was fixed. Use the right assert on the test.

svn path=/trunk/mcs/; revision=139376
2009-08-05 00:07:21 +00:00
Rodrigo Kumpera 00abc35d4c 2009-07-30 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (IsDefined): Throw if not
	created and not in compiler context.

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

	* TypeBuilderTest: Test for IsDefined.

svn path=/trunk/mcs/; revision=139142
2009-07-31 02:46:00 +00:00
Rodrigo Kumpera 04e8f61052 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetEvents): Throw if not created
	and not in compiler context.

	* TypeBuilder.cs (GetNestedType): Don't rely on
	MonoType implementation as it doesn't work if the
	nested type is defined after the TypeBuilder is
	created.

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

	* TypeBuilderTest: Test for GetNestedType.

svn path=/trunk/mcs/; revision=139136
2009-07-31 00:10:04 +00:00
Rodrigo Kumpera 2ef395d58f 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetConstructors): Throw if
	TypeBuilder is incomplete.

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

	* MonoGenericClass.cs (initialize): Call TypeBuilder::GetConstructorsInternal
	since the public version throws.

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

	* TypeBuilderTest: Test for GetConstructors.

svn path=/trunk/mcs/; revision=139009
2009-07-29 22:04:02 +00:00
Rodrigo Kumpera 9dae2c14ec 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetInterfaces): Return the expanded
	interface list if the type has been created.

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

	* TypeBuilderTest: Test for GetInterfaces.

svn path=/trunk/mcs/; revision=139008
2009-07-29 22:03:34 +00:00
Rodrigo Kumpera 7be2042377 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetGenericArguments): Returns null for
	 non generic TypeBuilders.

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

	* TypeBuilderTest: Test for GetGenericArguments.

svn path=/trunk/mcs/; revision=139007
2009-07-29 22:03:03 +00:00
Rodrigo Kumpera 9750d4a7d7 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetElementType): Throw always.

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

	* TypeBuilderTest.cs: Test for GetElementType.

svn path=/trunk/mcs/; revision=139006
2009-07-29 22:02:30 +00:00
Rodrigo Kumpera ba0cfe0ee9 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GetGenericTypeDefinition): Either
	throw or return itself.

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

	* TypeBuilderTest.cs: Test for GetGenericTypeDefinition.

svn path=/trunk/mcs/; revision=139005
2009-07-29 22:02:00 +00:00
Rodrigo Kumpera 03316f88b7 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (GenericParameterPosition): Return 0
	instead of throwing.

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

	* TypeBuilderTest.cs: Test for GenericParameterPosition.

svn path=/trunk/mcs/; revision=139004
2009-07-29 22:01:31 +00:00
Rodrigo Kumpera 93fb7cb54a 2009-07-29 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (DeclaringMethod): Return null
	instead of throwing.

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

	* TypeBuilderTest.cs: Test for DeclaringMethod.

svn path=/trunk/mcs/; revision=139003
2009-07-29 22:01:02 +00:00
Rodrigo Kumpera e4ce9c740f 2009-07-28 Rodrigo Kumpera <[email protected]>
* TypeBuilder.cs (CreateType): Throw if concrete
	type has abstract method.

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

	* TypeBuilderTest.cs: Test for concrete type with
	abstract method.

svn path=/trunk/mcs/; revision=138913
2009-07-29 03:02:47 +00:00
Rodrigo Kumpera 1d16127979 2009-07-28 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs: SetBaseTypeConstraint with
	null argument is the same as passing typeof (object).

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

	* GenericTypeParameterBuilderTest.cs: Test for BaseType
	and SetBaseTypeConstraint.

svn path=/trunk/mcs/; revision=138911
2009-07-29 02:04:15 +00:00
Rodrigo Kumpera a6b0d06329 2009-07-28 Rodrigo Kumpera <[email protected]>
* DerivedTypes.cs (ArrayType): Special case vector arrays using zero
	 as rank. This is required because we need to make the distinction
	between a vector and a one dimension SZARRAY.

	* EnumBuilder.cs: Create vectors as rank-zero ArrayType objects.

 	* TypeBuilder.cs: Same.

	* GenericTypeParameterBuilder.cs: Same.

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

	* DerivedTypesTests.cs: Add test for the distinction between
	vector and one-dimension SZARRAY.

svn path=/trunk/mcs/; revision=138907
2009-07-29 00:42:38 +00:00
Rodrigo Kumpera 2fbbd92309 2009-07-28 Rodrigo Kumpera <[email protected]>
DerivedTypes.cs: ByRef and Pointer types return Array as base
	type.

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

	DerivedTypesTest.cs: ByRef and Pointer types return Array as base
	type.

svn path=/trunk/mcs/; revision=138906
2009-07-29 00:42:11 +00:00
Rodrigo Kumpera 6fa184bfef 2009-07-15 Rodrigo Kumpera <[email protected]>
* EnumBuilder.cs: Use new derived types for array, pointer and byref.

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

	* DerivedTypesTest.cs: New tests for interaction with
	EnumBuilder objects.

svn path=/trunk/mcs/; revision=137989
2009-07-15 19:56:21 +00:00
Rodrigo Kumpera 387ba7e029 2009-07-15 Rodrigo Kumpera <[email protected]>
* GenericTypeParameterBuilder.cs (MakeByRefType): Return an instance
	of PointerType instead of relying on the runtime for it.

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

	* DerivedTypesTest.cs: New tests for PointerTypeinteraction
	with GenericTypeParameterBuilder.

svn path=/trunk/mcs/; revision=137988
2009-07-15 19:56:10 +00:00