Example #1
0
        public void TestDeleteTempTestFolderWithNestedFolder()
        {
            var subFolder = Path.Combine(TempPath.GetTempTestFolder(), "SubPowerPointLabsTest\\");

            TempPath.CreateTempTestFolder();

            if (!Directory.Exists(subFolder))
            {
                Directory.CreateDirectory(subFolder);
            }

            TempPath.DeleteTempTestFolder();
            Assert.IsFalse(TempPath.IsExistingTempTestFolder());
        }
Example #2
0
        public void TestDeleteTempTestFolderWithReadOnlyFile()
        {
            var readOnlyFile = Path.Combine(TempPath.GetTempTestFolder(), "ReadOnlyFile.txt");

            TempPath.CreateTempTestFolder();

            using (File.Create(readOnlyFile))
            {
                File.SetAttributes(readOnlyFile, FileAttributes.ReadOnly);
            }

            TempPath.DeleteTempTestFolder();
            Assert.IsFalse(TempPath.IsExistingTempTestFolder());
        }
Example #3
0
 public void TestDeleteTempTestFolder()
 {
     TempPath.CreateTempTestFolder();
     TempPath.DeleteTempTestFolder();
     Assert.IsFalse(TempPath.IsExistingTempTestFolder());
 }
Example #4
0
 public static void AssemblyTeardown()
 {
     TempPath.DeleteTempTestFolder();
 }