public void AfterPropertiesSetTest() { FtpPutTasklet tasklet = new FtpPutTasklet { FileName = "C:/temp/MyDummyTasklet_out_UP.txt", Username = "******", Password = "******" }; try { tasklet.AfterPropertiesSet(); } catch (Exception e) { Assert.IsTrue(e is ArgumentException); } tasklet.Host = "ftp.mysite.com"; tasklet.AfterPropertiesSet(); Assert.IsNotNull(tasklet.Host); }
public void DoExecuteTest() { FtpPutTasklet tasklet = new FtpPutTasklet { FileName = "C:/temp/MyDummyTasklet_out_UP.txt", Host = "ftp.XXX.xxx", Username = "******", Password = "******" }; tasklet.AfterPropertiesSet(); Assert.IsTrue(tasklet.DoExecute()); }