[tests] Test loading references from LoadFrom and LoadFile contexts
[mono-project.git] / mono / tests / appdomain-exit.cs
blob278909331f6d8b1f6ec0fc9850991a2d887d16e8
2 using System;
4 public class foo {
5 public static int Main() {
6 Environment.ExitCode = 2;
7 AppDomain domain=AppDomain.CreateDomain("Other");
8 Console.WriteLine("About to execute");
9 domain.ExecuteAssembly("main-exit.exe");
10 Console.WriteLine("Execute returns");
11 AppDomain.Unload(domain);
12 Console.WriteLine("finished");
13 return 1;