Пример #1
0
 void ftp_ServerDirectoryChanged(object sender, FTPDirectoryEventArgs e)
 {
     CheckSequence("ftp_ServerDirectoryChanged", true, EV_7, EV_11, EV_23);
     if (eventCounter == EV_7)
     {
         Assert.AreEqual(baseDirPath, e.NewDirectoryPath);
     }
     else if (eventCounter == EV_11)
     {
         Assert.AreEqual(baseDirPath, e.OldDirectoryPath);
         Assert.AreEqual(subdirPath, e.NewDirectoryPath);
     }
     else if (eventCounter == EV_23)
     {
         Assert.AreEqual(subdirPath, e.OldDirectoryPath);
         Assert.AreEqual(baseDirPath, e.NewDirectoryPath);
     }
 }
Пример #2
0
 void ftp_ServerDirectoryChanging(object sender, FTPDirectoryEventArgs e)
 {
     CheckSequence("ftp_ServerDirectoryChanging", true, EV_6, EV_10, EV_22);
     if (eventCounter == EV_6)
     {
         Assert.AreEqual(baseDirPath, e.NewDirectoryPath);
     }
     else if (eventCounter == EV_10)
     {
         Assert.AreEqual(baseDirPath, e.OldDirectoryPath);
         Assert.AreEqual(subdirPath, e.NewDirectoryPath);
     }
     else if (eventCounter == EV_22)
     {
         Assert.AreEqual(subdirPath, e.OldDirectoryPath);
         Assert.AreEqual(baseDirPath, e.NewDirectoryPath);
     }
 }
Пример #3
0
 void ftp_CreatedDirectory(object sender, FTPDirectoryEventArgs e)
 {
     Assert.AreEqual(subdirPath, e.NewDirectoryPath);
     CheckSequence("ftp_CreatedDirectory", true, EV_9);
 }
Пример #4
0
 void ftp_LocalDirectoryChanged(object sender, FTPDirectoryEventArgs e)
 {
     Assert.AreEqual(null, e.OldDirectoryPath);
     Assert.AreEqual(ftp.LocalDirectory, e.NewDirectoryPath);
     CheckSequence("ftp_LocalDirectoryChanged", true, EV_1);
 }
Пример #5
0
 void ftp_LocalDirectoryChanging(object sender, FTPDirectoryEventArgs e)
 {
     Assert.AreEqual(null, e.OldDirectoryPath);
     Assert.AreEqual(Directory.GetCurrentDirectory(), e.NewDirectoryPath);
     CheckSequence("ftp_LocalDirectoryChanging", true, EV_0);
 }