TARGET_JVM adjustments.
[mono.git] / mcs / class / corlib / Test / System.Reflection / MethodInfoTest.cs
index 68684421d286ed7bcd7b9f0ab739ead6f991e2a7..86cb680d49405abab7e08382a18f06a249906257 100644 (file)
@@ -42,9 +42,10 @@ namespace MonoTests.System.Reflection
        [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 () {
                }
@@ -85,6 +86,7 @@ namespace MonoTests.System.Reflection
                }
 
                [Test]
+               [Category ("TargetJvmNotWorking")]
                public void ReturnTypePseudoCustomAttributes () {
                        MethodInfo mi = typeof (MethodInfoTest).GetMethod ("ReturnTypeMarshalAs");
 
@@ -175,6 +177,7 @@ namespace MonoTests.System.Reflection
                }
 
 #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 ();
@@ -230,6 +233,7 @@ namespace MonoTests.System.Reflection
                        else
                                Assert.AreEqual (false, locals [1].IsPinned, "#6");
                }
+#endif // TARGET_JVM
 
                public int return_parameter_test () {
                        return 0;
@@ -245,6 +249,7 @@ namespace MonoTests.System.Reflection
                        //Assert.AreEqual (True, pi.IsRetval);
                }
 
+#if !TARGET_JVM // ReflectionOnly is not supported yet on TARGET_JVM
                [Test]
                [ExpectedException (typeof (InvalidOperationException))]
                public void InvokeOnRefOnlyAssembly ()
@@ -255,6 +260,7 @@ namespace MonoTests.System.Reflection
                        
                        m.Invoke (null, new object [0]);
                }
+#endif // TARGET_JVM
 
                [Test]
                public void InvokeGenericVtype ()
@@ -276,7 +282,7 @@ namespace MonoTests.System.Reflection
         }
 
                public void MakeGenericMethodArgsMismatchFoo<T> () {}
-
+           
                [Test]
                [ExpectedException (typeof (ArgumentException))]
                public void MakeGenericMethodArgsMismatch ()