public void IsolationDetector_Dirs_High() { string working = Path.Combine(Subjects.DirEmpty, "working_2"); Directory.CreateDirectory(working); string file1 = Path.Combine(working, "t1.dll"); string file2 = Path.Combine(working, "t2.dll"); File.Copy(Subjects.One, file1, true); File.Copy(Subjects.One, file2, true); try { Assert.AreEqual(AppDomainIsolationLevel.High, IsolationDetector.AutoDetectIsolationLevelDirs(working, Subjects.DirOne)); } finally { File.Delete(file1); File.Delete(file2); Directory.Delete(working); } }
public void IsolationDetector_Dirs_Medium() { Assert.AreEqual(AppDomainIsolationLevel.Medium, IsolationDetector.AutoDetectIsolationLevelDirs(Subjects.DirOne, Subjects.DirTwo)); }