[TestFixture]
public class MethodInfoTest
{
+#if !TARGET_JVM
[DllImport ("libfoo", EntryPoint="foo", CharSet=CharSet.Unicode, ExactSpelling=false, PreserveSig=true, SetLastError=true, BestFitMapping=true, ThrowOnUnmappableChar=true)]
public static extern void dllImportMethod ();
-
+#endif
[MethodImplAttribute(MethodImplOptions.PreserveSig)]
public void preserveSigMethod () {
}
}
[Test]
+ [Category ("TargetJvmNotWorking")]
public void ReturnTypePseudoCustomAttributes () {
MethodInfo mi = typeof (MethodInfoTest).GetMethod ("ReturnTypeMarshalAs");
}
#if NET_2_0
+#if !TARGET_JVM // MethodBody is not supported for TARGET_JVM
[Test]
public void GetMethodBody_Abstract () {
MethodBody mb = typeof (ICloneable).GetMethod ("Clone").GetMethodBody ();
else
Assert.AreEqual (false, locals [1].IsPinned, "#6");
}
+#endif // TARGET_JVM
public int return_parameter_test () {
return 0;
//Assert.AreEqual (True, pi.IsRetval);
}
+#if !TARGET_JVM // ReflectionOnly is not supported yet on TARGET_JVM
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void InvokeOnRefOnlyAssembly ()
m.Invoke (null, new object [0]);
}
+#endif // TARGET_JVM
[Test]
public void InvokeGenericVtype ()
}
public void MakeGenericMethodArgsMismatchFoo<T> () {}
-
+
[Test]
[ExpectedException (typeof (ArgumentException))]
public void MakeGenericMethodArgsMismatch ()