public void CreateAndDelete()
 {
     var Temp = new Utilities.IO.DirectoryInfo("./Test");
     Temp.Create();
     Assert.True(Temp.Exists);
     Temp.Delete();
     Assert.False(Temp.Exists);
 }
示例#2
0
        public void CreateAndDelete()
        {
            var Temp = new Utilities.IO.DirectoryInfo("./Test");

            Temp.Create();
            Assert.True(Temp.Exists);
            Temp.Delete();
            Assert.False(Temp.Exists);
        }
 public void DeleteExtension()
 {
     var Temp = new Utilities.IO.DirectoryInfo("./Test");
     Temp.Create();
     for (int x = 0; x < 10; ++x)
     {
         new Utilities.IO.FileInfo("./Test/" + x + ".txt").Write("Testing this out");
     }
     Temp.EnumerateFiles().Delete();
     Temp.Delete();
 }
 public void DeleteExtension()
 {
     var Temp = new Utilities.IO.DirectoryInfo("./Test");
     Temp.Create();
     for (int x = 0; x < 10; ++x)
     {
         new Utilities.IO.DirectoryInfo("./Test/" + x).Create();
     }
     Temp.EnumerateDirectories().Delete();
     Temp.Delete();
 }
示例#5
0
        public void DeleteExtension()
        {
            var Temp = new Utilities.IO.DirectoryInfo("./Test");

            Temp.Create();
            for (int x = 0; x < 10; ++x)
            {
                new Utilities.IO.DirectoryInfo("./Test/" + x).Create();
            }
            Temp.EnumerateDirectories().Delete();
            Temp.Delete();
        }
        public void DeleteExtension()
        {
            var Temp = new Utilities.IO.DirectoryInfo("./Test");

            Temp.Create();
            for (int x = 0; x < 10; ++x)
            {
                new Utilities.IO.FileInfo("./Test/" + x + ".txt").Write("Testing this out");
            }
            Temp.EnumerateFiles().Delete();
            Temp.Delete();
        }
示例#7
0
        public void Move()
        {
            IDirectory Temp  = new Utilities.IO.DirectoryInfo("./Test");
            IDirectory Temp2 = new Utilities.IO.DirectoryInfo("./Test2");

            Temp.Create();
            Temp2.Create();
            Temp2 = Temp2.MoveTo(Temp);
            Assert.True(Temp.Exists);
            Assert.True(Temp2.Exists);
            Assert.Equal(Temp, Temp2.Parent);
            Temp.Delete();
            Assert.False(Temp.Exists);
        }
 public void Move()
 {
     IDirectory Temp = new Utilities.IO.DirectoryInfo("./Test");
     IDirectory Temp2 = new Utilities.IO.DirectoryInfo("./Test2");
     Temp.Create();
     Temp2.Create();
     Temp2 = Temp2.MoveTo(Temp);
     Assert.True(Temp.Exists);
     Assert.True(Temp2.Exists);
     Assert.Equal(Temp, Temp2.Parent);
     Temp.Delete();
     Assert.False(Temp.Exists);
 }