Esempio n. 1
0
        public void TearDown()
        {
            if (ksp != null)
            {
                ksp.Dispose();
            }

            Directory.Delete(ksp_dir, true);
        }
Esempio n. 2
0
        public void TearDown()
        {
            if (ksp != null)
            {
                // Manually dispose of RegistryManager
                // For some reason the KSP instance doesn't do this itself causing test failures because the registry
                // lock file is still in use. So just dispose of it ourselves.
                CKAN.RegistryManager.Instance(ksp).Dispose();
                ksp.Dispose();
            }

            Directory.Delete(ksp_dir, true);
        }
Esempio n. 3
0
File: KSP.cs Progetto: trakos/CFAN
 public void TearDown()
 {
     ksp.Dispose();
     ksp = null;
     Directory.Delete(ksp_dir, true);
 }