Inheritance: IDisposable
示例#1
0
文件: IOTests.cs 项目: sq/Libraries
        public void TearDown()
        {
            Monitor.Dispose();
            Monitor = null;

            System.IO.Directory.Delete(TempFolder, true);
        }
示例#2
0
文件: IOTests.cs 项目: sq/Libraries
 public void SetUp()
 {
     TempFolder = System.IO.Path.GetTempPath() + System.IO.Path.GetRandomFileName();
     System.IO.Directory.CreateDirectory(TempFolder);
     string[] folders    = new string[] { TempFolder };
     string[] filters    = new string[] {};
     string[] exclusions = new string[] {};
     Monitor = new DiskMonitor(folders, filters, exclusions);
 }
示例#3
0
文件: IOTests.cs 项目: sq/Fracture
        public void TearDown()
        {
            Monitor.Dispose();
            Monitor = null;

            System.IO.Directory.Delete(TempFolder, true);
        }
示例#4
0
文件: IOTests.cs 项目: sq/Fracture
 public void SetUp()
 {
     TempFolder = System.IO.Path.GetTempPath() + System.IO.Path.GetRandomFileName();
     System.IO.Directory.CreateDirectory(TempFolder);
     string[] folders = new string[] {TempFolder};
     string[] filters = new string[] {};
     string[] exclusions = new string[] {};
     Monitor = new DiskMonitor(folders, filters, exclusions);
 }