public AppDomainTests()
{
string sourceTestAssemblyPath = Path.Combine(Environment.CurrentDirectory, "AssemblyResolveTests.dll");
string destTestAssemblyPath = Path.Combine(Environment.CurrentDirectory, "AssemblyResolveTests", "AssemblyResolveTests.dll");
if (File.Exists(sourceTestAssemblyPath))
{
Directory.CreateDirectory(Path.GetDirectoryName(destTestAssemblyPath));
File.Copy(sourceTestAssemblyPath, destTestAssemblyPath, true);
File.Delete(sourceTestAssemblyPath);
}
sourceTestAssemblyPath = Path.Combine(Environment.CurrentDirectory, "TestAppOutsideOfTPA.exe");
destTestAssemblyPath = Path.Combine(Environment.CurrentDirectory, "TestAppOutsideOfTPA", "TestAppOutsideOfTPA.exe");
if (File.Exists(sourceTestAssemblyPath))
{
Directory.CreateDirectory(Path.GetDirectoryName(destTestAssemblyPath));
File.Copy(sourceTestAssemblyPath, destTestAssemblyPath, true);
File.Delete(sourceTestAssemblyPath);
}
}