Exemplo n.º 1
0
 public void CreateDirectory1()
 {
     nc = new Cifs();
     nc.CreateDirectory(share1 + @"newDirectory");
     if (!nc.DirectoryExists(share1 + @"newDirectory"))
     {
         Assert.Fail();
     }
     nc.DeleteDirectory(share1 + @"newDirectory");
     if (nc.DirectoryExists(share1 + @"newDirectory"))
     {
         Assert.Fail();
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Deixa el joc de proves igual que inicialment.
        /// </summary>
        public void Down()
        {
            if (File.Exists(local1 + @"newfile4.sql"))
            {
                File.Delete(local1 + @"newfile4.sql");
            }


            if (nc.DirectoryExists(share1 + @"newDirectory"))
            {
                nc.DeleteDirectory(share1 + @"newDirectory");
            }

            if (nc.DirectoryExists(share2 + @"newDirectory"))
            {
                nc.DeleteDirectory(share2 + @"newDirectory");
            }

            if (nc.DirectoryExists(share1 + @"newDirectory2"))
            {
                nc.DeleteDirectory(share1 + @"newDirectory2");
            }

            if (nc.DirectoryExists(share1 + @"newDirectory5"))
            {
                nc.DeleteDirectory(share1 + @"newDirectory5");
            }

            if (nc.DirectoryExists(share1 + @"newDirectory6"))
            {
                nc.DeleteDirectory(share1 + @"newDirectory6");
            }

            if (File.Exists(local1 + @"newfile3.pdf"))
            {
                File.Delete(local1 + @"newfile3.pdf");
            }

            System.Console.WriteLine("Final Test");
        }
Exemplo n.º 3
0
 public void CreateDirectory1()
 {
     nc= new Cifs();
     nc.CreateDirectory(share1+@"newDirectory");
     if ( !nc.DirectoryExists(share1+@"newDirectory"))
         Assert.Fail();
     nc.DeleteDirectory(share1+@"newDirectory");
     if (nc.DirectoryExists(share1+@"newDirectory"))
         Assert.Fail();
 }