Imported Upstream version 6.0.0.172

Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-12 14:10:50 +00:00
parent 8016999e4d
commit 64ac736ec5
32155 changed files with 3981439 additions and 75368 deletions

View File

@ -195,7 +195,7 @@ namespace MonoTests.System.Reflection
// note: only available in default appdomain
// http://weblogs.asp.net/asanto/archive/2003/09/08/26710.aspx
// Not sure we should emulate this behavior.
#if MONOTOUCH_WATCH
#if MONOTOUCH_WATCH || WASM
Assert.IsNull (Assembly.GetEntryAssembly (), "GetEntryAssembly");
Assert.IsTrue (AppDomain.CurrentDomain.IsDefaultAppDomain (), "!default appdomain");
#elif !MONODROID
@ -318,6 +318,7 @@ namespace MonoTests.System.Reflection
[Test]
[Category ("AndroidNotWorking")] // Assemblies in Xamarin.Android cannot be accessed as FileStream
[Category ("StaticLinkedAotNotWorking")] // Can't find .dll files when bundled in .exe
[Category ("NotWasm")]
public void GetFiles_False ()
{
Assembly corlib = typeof (int).Assembly;
@ -332,6 +333,7 @@ namespace MonoTests.System.Reflection
[Test]
[Category ("AndroidNotWorking")] // Assemblies in Xamarin.Android cannot be accessed as FileStream
[Category ("StaticLinkedAotNotWorking")] // Can't find .dll files when bundled in .exe
[Category ("NotWasm")]
public void GetFiles_True ()
{
Assembly corlib = typeof (int).Assembly;
@ -461,6 +463,7 @@ namespace MonoTests.System.Reflection
}
[Test]
[Category ("StackWalks")]
public void LoadWithPartialName ()
{
// FIXME?
@ -1133,7 +1136,7 @@ namespace MonoTests.System.Reflection
Module module = assembly.ManifestModule;
Assert.IsNotNull (module, "#1");
Assert.AreEqual ("MonoModule", module.GetType ().Name, "#2");
Assert.AreEqual ("RuntimeModule", module.GetType ().Name, "#2");
#if !MONOTOUCH && !FULL_AOT_RUNTIME
Assert.AreEqual ("mscorlib.dll", module.Name, "#3");
@ -1244,6 +1247,7 @@ namespace MonoTests.System.Reflection
}
[Test]
[Category ("StackWalks")]
public void GetCallingAssembly_Direct() {
var a = GetCallingAssemblyCallee.DirectCall ();
Assert.IsNotNull (a);
@ -1252,6 +1256,7 @@ namespace MonoTests.System.Reflection
}
[Test]
[Category ("StackWalks")]
public void GetCallingAssembly_SkipsReflection () {
// check that the calling assembly is this
// one, not mscorlib (aka, the reflection