public void Test_AppDomainLoadingAndUnloading() { List <String> dependentAssemblies = CecilAssemblyDependencies.getListOfDependenciesForType(typeof(StartCSharpScriptGui)); var appDomainTempDirectory = DI.config.TempFolderInTempDirectory; var o2AppDomainFactory = new O2AppDomainFactory("testAppDomain", appDomainTempDirectory, dependentAssemblies); //o2AppDomainFactory.unLoadAppDomain(); o2AppDomainFactory.unLoadAppDomainAndDeleteTempFolder(); }