Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@ -5,7 +5,7 @@
using System;
using System.Reflection;
#if !MONOTOUCH && !MOBILE_STATIC
#if !MONOTOUCH && !FULL_AOT_RUNTIME
using System.Reflection.Emit;
#endif
using System.Threading;
@ -26,7 +26,7 @@ namespace MonoTests.System
[Test] //See bug #372406
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")] // #10539
#endif
public void CreateDelegate1_Method_Private_Instance ()
@ -64,7 +64,7 @@ namespace MonoTests.System
}
[Test] // CreateDelegate (Type, MethodInfo)
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")] // #14163
#endif
public void CreateDelegate1_Method_Instance ()
@ -925,7 +925,7 @@ namespace MonoTests.System
}
[Test]
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")] // #10539
#endif
public void Virtual ()
@ -956,7 +956,7 @@ namespace MonoTests.System
}
[Test]
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")] // #14163
#endif
public void NullTarget_Instance ()
@ -1021,7 +1021,7 @@ namespace MonoTests.System
}
[Test] // #617161
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")] // #10539
#endif
public void ClosedOverNullReferenceStaticMethod ()
@ -1045,7 +1045,7 @@ namespace MonoTests.System
}
[Test] // #475962
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")] // #10539
#endif
public void ClosedOverNullReferenceInstanceMethod ()
@ -1079,7 +1079,7 @@ namespace MonoTests.System
delegate int ByRefDelegate (ref FooStruct s, int a, int b, int c, int d);
#if MONOTOUCH || MOBILE_STATIC
#if MONOTOUCH || FULL_AOT_RUNTIME
[Category ("NotWorking")]
#endif
[Test]
@ -1279,7 +1279,7 @@ namespace MonoTests.System
{
string retarg (string s);
}
#if !MONOTOUCH && !MOBILE_STATIC
#if !MONOTOUCH && !FULL_AOT_RUNTIME
[Test]
public void CreateDelegateWithLdFtnAndAbstractMethod ()
{
@ -1388,7 +1388,7 @@ namespace MonoTests.System
Assert.IsTrue (d (0, 0));
}
#if !MONOTOUCH && !MOBILE_STATIC
#if !MONOTOUCH && !FULL_AOT_RUNTIME
public static void DynInvokeWithClosedFirstArg (object a, object b)
{
}
@ -1453,6 +1453,26 @@ namespace MonoTests.System
Delegate.CreateDelegate(typeof(Action), this, m);
}
[Test]
public void ReflectedTypeInheritedVirtualMethod ()
{
var a = new DerivedClass ();
Action m = a.MyMethod;
Assert.AreEqual (typeof (BaseClass), m.Method.ReflectedType);
}
class BaseClass
{
public virtual void MyMethod() {
Console.WriteLine ("Base method");
}
}
class DerivedClass : BaseClass
{
}
public void AnyGenericMethod<T>()
{
}