[tests] Assembly.Location doesn't work on XA
authorMarek Habersack <grendel@twistedcode.net>
Thu, 11 Jun 2015 18:11:14 +0000 (20:11 +0200)
committerMarek Habersack <grendel@twistedcode.net>
Wed, 15 Jul 2015 18:45:18 +0000 (20:45 +0200)
Xamarin.Android stores assemblies inside apk (or bundled, or AOT-ed) and
so Assembly.Location will not point to a real path on the
filesystem. It merely contains assembly name.

mcs/class/corlib/Test/System.Reflection/AssemblyNameTest.cs
mcs/class/corlib/Test/System/ActivatorTest.cs

index abf316c1a6995dbd92b0219082c3f4df0db4fff9..318f0c662b91669cdaaa0c807a762bbfb0c3ba5a 100644 (file)
@@ -1112,6 +1112,7 @@ public class AssemblyNameTest {
        }
 
        [Test]
+       [Category ("AndroidNotWorking")] // Accessing assemblies by asm.Location is not supported
        public void GetAssemblyName_CodeBase ()
        {
                Assembly execAssembly = Assembly.GetExecutingAssembly ();
index f06c2c1963287448307379a8bcc2f962d4c59cf9..a2bf6ab3d32472578860fe8f8d96cef00548d745 100644 (file)
@@ -422,6 +422,7 @@ namespace MonoTests.System {
                // TODO: Implemente the test methods for all the overriden function using activationAttribute
 
                [Test]
+               [Category ("AndroidNotWorking")] // Assemblies aren't accessible using filesystem paths (they're either in apk, embedded in native code or not there at all
                public void CreateInstanceFrom ()
                {
                        ObjectHandle objHandle = Activator.CreateInstanceFrom (testLocation, "MonoTests.System.ActivatorTestInternal.COMTest");