Imported Upstream version 6.4.0.137

Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-07-26 19:53:28 +00:00
parent e9207cf623
commit ef583813eb
2712 changed files with 74169 additions and 40587 deletions

View File

@ -99,12 +99,14 @@ public class AssemblyBuilderTest
return mb;
}
#if !DISABLE_SECURITY
[Test]
[Category ("MobileNotWorking")]
public void DefaultCtor ()
{
Assert.IsNotNull (ab.Evidence, "#1");
}
#endif
[Test]
[Category ("NotWorking")]
@ -1789,8 +1791,7 @@ public class AssemblyBuilderTest
// load assembly in separate domain, so we can clean-up after the
// test
newDomain = AppDomain.CreateDomain ("test2", currentDomain.Evidence,
currentDomain.SetupInformation);
newDomain = AppDomain.CreateDomain ("test2", null, currentDomain.SetupInformation);
Helper helper = new Helper (Path.Combine (tempDir, assemblyName.Name + ".dll"),
fullName);
@ -1906,6 +1907,17 @@ public class AssemblyBuilderTest
});
}
[Test]
public void GetReflectionOnly ()
{
// Regression test for 13028.
// Asserts ReflectionOnly is actually implemented.
AssemblyBuilder ab1 = genAssembly ();
AssemblyBuilder ab2 = genAssembly (AssemblyBuilderAccess.ReflectionOnly);
Assert.IsFalse (ab1.ReflectionOnly, "#1");
Assert.IsTrue (ab2.ReflectionOnly, "#2");
}
}
}