Commit Graph
34 Commits
Author SHA1 Message Date
Zoltan Varga 3cfe5adf95 Properly inflate arrays of generic parameters in resolve_object (). Fixes #7964. 2012-11-01 15:41:20 +01:00
Sebastien Pouliot 232b6428d8 More fixes for running unit tests under NET_2_1 profile 2011-09-12 10:48:12 -04:00
Zoltan Varga ea353d283d Add checks to ParameterBuilder.SetConstant () to avoid an assert in the runtime. Fixes #684438. 2011-04-10 20:27:58 +02:00
Rodrigo Kumpera a0182452a3 MethodBuilder should return null for generic arguments of non generic method.
* MethodBuilder.cs (GetGenericArguments): Return null if not
	generic.

	* MethodBuilderTest.cs: Add test for #384127.

	Fixes bug #384127.
2010-09-13 14:26:30 -03:00
Jb Evain 93e0e07963 Test that we can call GetMethodBody on a method defined in a dynamic module. 2010-08-06 13:07:17 +02:00
Rodrigo Kumpera 11a85794e3 Add test for using generic arguments from other methods.
* MethodBuilderTest.cs: Add test for generic arguments
	used are parameter of a method builder.
2010-08-04 18:40:24 -03:00
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
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
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
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
Raja R Harinath b6d8e98872 In class/corlib/Test/System.Reflection.Emit:
* MethodBuilderTest.cs (Bug354757): New test.

In class/corlib/Test/System.Reflection:
	* MethodInfoTest.cs (GetGenericMethodDefinition): Add a test for
	an instantiation.
	(Bug354757): New test.

svn path=/trunk/mcs/; revision=96225
2008-02-20 08:22:24 +00:00
Zoltan Varga e1e9e8510e 2007-09-11 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add new tests for using generic types in the IL
	code stream.

svn path=/trunk/mcs/; revision=85650
2007-09-11 18:15:08 +00:00
Zoltan Varga 048fd4da2e 2007-09-09 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add a new test.

svn path=/trunk/mcs/; revision=85542
2007-09-09 21:27:40 +00:00
Gert Driesen 3b44a4eb76 * MethodBuilderTest.cs: Split up GetCustomAttributes test and marked
the one for a baked type as NotWorking. Added test for 
SetCustomAttribute with SuppressUnmanagedCodeSecurity attribute.
* TypeBuilderTest.cs: Split up HasElementType test and marked the 
baked variant as NotWorking on the 1.0 profile. Enabled additional
test for bug #81640. Added test for SetCustomAttribute with
SuppressUnmanagedCodeSecurity attribute.
* TypeBuilder.cs: Changed HasElementTypeImpl to return false on 2.0
profile when type is not baked.

svn path=/trunk/mcs/; revision=77776
2007-05-21 18:54:02 +00:00
Gert Driesen 5f17dad462 * MethodBuilderTest.cs: Move from Assertion to Assert. Added tests
for zero-length and null dll name for DllImport.  Enabled extra tests
in TestDynamicParams.

svn path=/trunk/mcs/; revision=73440
2007-02-26 19:57:08 +00:00
Gert Driesen f79b8c7afe * ConstructorBuilder.cs: In AddDeclarativeSecurity, throw an
ArgumentOutOfRangeException instead of an ArgumentException if action
is a Request* action. Fixes bug #77640.
* MethodBuilder.cs: Same.
* TypeBuilder.cs: Same.
* ConstructorBuilderTest.cs: Expect ArgumentOutOfRangeException
instead of ArgumentException when passing Request action to
AddDeclarativeSecurity (bug #77640).
* MethodBuilderTest.cs: Same.
* TypeBuilderTest.cs: Same.

svn path=/trunk/mcs/; revision=57340
2006-02-27 18:03:01 +00:00
Zoltan Varga b84e458fad 2005-12-10 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add test for handling not accessible custom
	attributes.

svn path=/trunk/mcs/; revision=54197
2005-12-10 21:17:08 +00:00
Zoltan Varga 66b14ccfa2 2005-10-27 Zoltan Varga <[email protected]>
* FieldBuilderTest.cs MethodBuilderTest.cs ConstructorBuilderTest.cs:
	Add tests for #76521.

svn path=/trunk/mcs/; revision=52286
2005-10-27 14:04:53 +00:00
Gert Driesen d04686431b * MethodBuilder.cs: In CreateMethodBody, throw ArgumentOutOfRangeException
instead of ArgumentException when count is not within range of array. Do not
allow zero-length method body to be emitted when using 2.0 profile. Fixes
bug #75236.
* MethodBuilderTest.cs: Updated existing tests to no longer define zero-length
method body. Added tests for bug #75236.

svn path=/trunk/mcs/; revision=46376
2005-06-22 18:04:04 +00:00
Gert Driesen 9373c633db * FieldBuilder.cs: FieldBuilder.FieldHandle should throw NotSupportException
to match MS.NET (1.x and 2.x). Fixes regression introduce in r45750.
* MethodBuilder.cs: MethodBuilder.MethodHandle should throw 
NotSupportedException to match MS.NET (1.x and 2.x). Fixes regression
introduced in r45750.
* MethodBuilderTest.cs: Enabled test for MethodHandle again after fixing
regression, and added additional test. Added Test attributes to tests.
* FieldBuilderTest.cs: Enabled tests for FieldHandle again after fixing
regression.
* ConstructorBuilderTest.cs: MethodHandle should not throw 
NotSupportedException.

svn path=/trunk/mcs/; revision=45816
2005-06-12 06:57:49 +00:00
Ben Maurer f947f96611 NotWorking stuff
svn path=/trunk/mcs/; revision=45778
2005-06-10 16:45:59 +00:00
Zoltan Varga 1b970b7949 2005-06-06 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add tests for setting DllImportAttribute.

svn path=/trunk/mcs/; revision=45495
2005-06-06 14:45:29 +00:00
Zoltan Varga d74cdd220e 2005-04-16 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add test for parameter attributes.

svn path=/trunk/mcs/; revision=43095
2005-04-16 15:55:36 +00:00
Zoltan Varga 1cb4a802a3 2004-10-05 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add tests for default values for parameters.

svn path=/trunk/mcs/; revision=34714
2004-10-05 11:29:59 +00:00
Gert Driesen 15fcfc0166 * TypeBuilderTest.cs: Added tests for completed/created type
* FieldBuilderTest.cs: Added tests for FieldBuilder (mostly
checking error conditions for now)

* EnumBuilderTest.cs: Added tests for EnumBuilder

* MethodBuilderTest.cs: Added tests for invalid parameter
indexes for created types, added test for GetHashCode

svn path=/trunk/mcs/; revision=29133
2004-06-09 19:21:44 +00:00
Zoltan Varga be7d0be3f3 2004-02-16 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Fix test so it runs under MS.

svn path=/trunk/mcs/; revision=23127
2004-02-16 14:17:17 +00:00
Zoltan Varga b2a4f152ab 2004-02-11 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Add tests for parameter info.

svn path=/trunk/mcs/; revision=22970
2004-02-11 13:42:36 +00:00
Zoltan Varga e8d78b6cd3 2003-12-15 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs ConstructorBuilderTest.cs: Add tests for
	AddDeclarativeSecurity.

svn path=/trunk/mcs/; revision=21171
2003-12-15 13:57:08 +00:00
Zoltan Varga e51b27c1e6 2003-06-30 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs (TestReturnType): Make test more general so
	it works both on Mono and MS.NET.

svn path=/trunk/mcs/; revision=15746
2003-06-30 12:41:52 +00:00
Nick Drochak bcd9847a67 2003-05-28 Nick Drochak <[email protected]>
* MethodBuilderTest: correct order of expected and actual values.

svn path=/trunk/mcs/; revision=14935
2003-05-27 15:26:34 +00:00
Zoltan Varga 791fc8888d 2003-05-12 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Comment out test which fails because of a mono
	extension to DefineParameter.

svn path=/trunk/mcs/; revision=14578
2003-05-14 14:17:44 +00:00
Zoltan Varga e419439f92 2003-02-12 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: Added test for setting MethodImplAttributes
	using a custom attribute.

svn path=/trunk/mcs/; revision=11531
2003-02-12 20:37:23 +00:00
Zoltan Varga ea30af9f57 2003-02-10 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs: updated to NUNIT2 conventions.

	* ConstructorBuilderTest.cs: New file.

svn path=/trunk/mcs/; revision=11438
2003-02-10 12:51:08 +00:00
Zoltan Varga 322bd32b87 2003-02-08 Zoltan Varga <[email protected]>
* MethodBuilderTest.cs ChangeLog: New files.

svn path=/trunk/mcs/; revision=11356
2003-02-08 16:53:39 +00:00