* MethodInfoTest.cs: New test for GetParameters() returning the
* interned array.
* PropertyInfoTest.cs: New tests for GetIndexParameters().
svn path=/trunk/mcs/; revision=150946
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
* 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
* 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
* 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
* 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
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
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
* 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
* 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