* ModuleBuilderTest.cs: add a test accessing the property
Module.ModuleVersionId on a dynamic module.
Test for #471302.
svn path=/trunk/mcs/; revision=127630
2008-09-02 Rodrigo Kumpera <[email protected]>
* TypeBuilderTest.cs: New test for a field with initialized data
that is referenced from another assembly.
svn path=/trunk/mcs/; revision=112126
parent.
* TypeBuilderTest.cs: Added test for SetParent with interface as
parent. Added test for CreateType of an interface with invalid parent.
Added tests for checks in DefineGenericParameters. Improved test
for MakeGenericType, and added tests for argument checks in
MakeGenericType.
svn path=/trunk/mcs/; revision=106355
test for UnderlyingSystemType, and improved it. Improved test for
null parent.
* ConstructorOnTypeBuilderInstTest.cs: Enabled test for GetParameters.
* ConstructorBuilderTest.cs: Enabled test for GetParameters. Renamed
test for SetCustomAttribute, and added new tests.
* ModuleBuilderTest.cs: Added tests for bug #387404.
* TypeBuilder.cs: Use Assembly.FullName instead of AssemblyName.
In UnderlyingSystemType, return UnderlyingSystemType of created type
when available. For an enum, UnderlyingSystemType is the type of the
first instance field. If no instance field is available, throw an
InvalidOperationException. Retain original behavior when operating in
compiler context.
* ConstructorBuilder.cs: Moved implementation of GetParameters to
GetParametersInternal to allow it to be used internally when type is
not yet created.
* CustomAttributeBuilder.cs: Added GetParameters method that uses
GetParametersInternal on ConstructorBuilder, and use it where
necessary.
svn path=/trunk/mcs/; revision=102970
* ParameterInfo.cs: Name must default to null if no ParameterBuilder
is supplied.
* ModuleBuilder.cs (DefineType): Do not perform lookup of in cache if
name is null to allow correct exception to be thrown (in TypeBuilder
ctor).
* TypeBuilder: Moved name argument check to TypeBuilder ctor. Modified
ArgumentException parameter names to match MS. Removed duplicate check
for data length from DefineInitializedData. Modified check_name to
only throw when first character is null char.
* ConstructorBuilder.cs (GetParameters): Throw NotSupportedException
(2.0) or InvalidOperationException (1.0) when type is not yet created
and we're not in compiler context. Return empty array when no
parameters are defined.
(MethodHandle): Always throw NotSupportedException.
(DefineParameter): Prevent NRE when parameters is null.
(GetCustomAttributes): When not in compiler context, always throw
NotSupportedException.
* ConstructorOnTypeBuilderInst.cs: Delegate to ConstructorBuilder
where possible. Fixed ContainsGenericParameters and IsGenericMethod
to always return false. In MethodBase.Invoke, throw an
InvalidOperationException instead of NIE.
* MethodOnTypeBuilderInstTest.cs: Fixed exception message in comments.
* TypeBuilderTest.cs: Do not use ExpectedException to avoid false
positives. Added argument check tests for DefineEvent, DefineField,
DefineMethod, DefinePInvokeMethod and DefinePropety. Use
Type.EmptyTypes instead of constructing empty array.
* ConstructorBuilderTest.cs: Added Test attributes. Added tests
for DefineParameter and Invoke overloads. Added tests for
GetCustomAttributes overloads. Avoid use of ExpectedException.
* ModuleBuilderTest.cs: Added tests for DefineType name argument
checks.
* ConstructorOnTypeBuilderInstTest.cs: Added basic set of tests.
svn path=/trunk/mcs/; revision=102211
construct non-abstract interface without base type. Modified SetParent
to match MS: in 2.0 profile, throw InvalidOperationException when
parent is null and TypeBuilder is non-abstract interface. When
parent is null and TypeBuilder is not an interface, then set object
as parent. In 1.0 profile, throw ArgumentNullException when parent is
null.
* TypeBuilderTest.cs: Improved tests for SetParent.
* ModuleBuilderTest.cs: Added test for creating non-abstract
interface.
svn path=/trunk/mcs/; revision=81476
2007-03-06 Rolf Bjarne Kvinge <[email protected]>
* MonoArrayMethod.cs: Use 'void' as return type in ToString when
the return type is null. Fixes#80435.
In Test/System.Reflection.Emit:
2007-03-06 Rolf Bjarne Kvinge <[email protected]>
* ModuleBuilderTest.cs: Added GetArrayMethodToStringTest () -#80435.
svn path=/trunk/mcs/; revision=73788