You've already forked linux-packaging-mono
Imported Upstream version 5.12.0.220
Former-commit-id: c477e03582759447177c6d4bf412cd2355aad476
This commit is contained in:
parent
8bd104cef2
commit
8fc30896db
@ -851,7 +851,7 @@ namespace MonoTests.System
|
||||
delegate object Boxer ();
|
||||
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
public void BoxingCovariance ()
|
||||
{
|
||||
var boxer = (Boxer) Delegate.CreateDelegate (
|
||||
@ -913,7 +913,7 @@ namespace MonoTests.System
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
public void NullFirstArgumentOnStaticMethod ()
|
||||
{
|
||||
CallTarget call = (CallTarget) Delegate.CreateDelegate (
|
||||
@ -927,7 +927,7 @@ namespace MonoTests.System
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
#if MONOTOUCH || FULL_AOT_RUNTIME
|
||||
[Category ("NotWorking")] // #10539
|
||||
#endif
|
||||
@ -1027,7 +1027,7 @@ namespace MonoTests.System
|
||||
#if MONOTOUCH || FULL_AOT_RUNTIME
|
||||
[Category ("NotWorking")] // #10539
|
||||
#endif
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
public void ClosedOverNullReferenceStaticMethod ()
|
||||
{
|
||||
var del = (Func<long?,long?>) Delegate.CreateDelegate (
|
||||
@ -1105,7 +1105,7 @@ namespace MonoTests.System
|
||||
event Action bar_handler;
|
||||
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
[ExpectedException (typeof (ArgumentException))] // #635349, #605936
|
||||
public void NewDelegateClosedOverNullReferenceInstanceMethod ()
|
||||
{
|
||||
@ -1149,7 +1149,7 @@ namespace MonoTests.System
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
public void DynamicInvokeOpenInstanceDelegate ()
|
||||
{
|
||||
var d1 = Delegate.CreateDelegate (typeof (Func<DelegateTest, int>), typeof(DelegateTest).GetMethod ("DynamicInvokeOpenInstanceDelegate_CB"));
|
||||
@ -1287,7 +1287,7 @@ namespace MonoTests.System
|
||||
}
|
||||
#if !MONOTOUCH && !FULL_AOT_RUNTIME
|
||||
[Test]
|
||||
[Category ("InterpreterNotWorking")]
|
||||
[Category ("NotWorkingRuntimeInterpreter")]
|
||||
public void CreateDelegateWithLdFtnAndAbstractMethod ()
|
||||
{
|
||||
AssemblyName assemblyName = new AssemblyName ();
|
||||
@ -1395,6 +1395,23 @@ namespace MonoTests.System
|
||||
Assert.IsTrue (d (0, 0));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EnumBaseTypeConversion2 () {
|
||||
Func<Enum22, int> dm = EnumArg;
|
||||
var d = (Func<int, int>)Delegate.CreateDelegate (typeof (Func<int, int>), dm.Method);
|
||||
Assert.AreEqual (1, d (1));
|
||||
}
|
||||
|
||||
public enum Enum22 {
|
||||
none,
|
||||
one,
|
||||
two
|
||||
}
|
||||
|
||||
public static int EnumArg (Enum22 e) {
|
||||
return (int)e;
|
||||
}
|
||||
|
||||
#if !MONOTOUCH && !FULL_AOT_RUNTIME
|
||||
public static void DynInvokeWithClosedFirstArg (object a, object b)
|
||||
{
|
||||
|
Reference in New Issue
Block a user