Ejemplo n.º 1
0
 public void TearDown()
 {
     testsOnDomain1 = null;
     testsOnDomain2 = null;
     AppDomain.Unload(domain1);
     AppDomain.Unload(domain2);
     File.Delete(AssemblyName.Name + ".dll");
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     domain1 = AppDomain.CreateDomain("domain1");
     domain2 = AppDomain.CreateDomain("domain2");
     testsOnDomain1 = (VersionToleranceTests)domain1.CreateInstanceAndUnwrap(typeof(VersionToleranceTests).Assembly.FullName, typeof(VersionToleranceTests).FullName);
     testsOnDomain2 = (VersionToleranceTests)domain2.CreateInstanceAndUnwrap(typeof(VersionToleranceTests).Assembly.FullName, typeof(VersionToleranceTests).FullName);
 }