Example #1
0
        public void stRemoteTest3()
        {
            var target = new FileComponentDownloadAccessor();

            Assert.AreEqual(Value.Empty, target.parse("[File remote.download(\"ftp://192.168.17.04:2021/dir1/non-api.png\", \"non-api.png\", \"user1\", \"mypass123\")]"));
            Assert.AreEqual(target.addr, "ftp://192.168.17.04:2021/dir1/non-api.png");
            Assert.AreEqual(target.output, "non-api.png");
            Assert.AreEqual(target.user, "user1");
            Assert.AreEqual(target.pwd, "mypass123");
        }
Example #2
0
        public void stRemoteTest3()
        {
            var target = new FileComponentDownloadAccessor();

            Assert.AreEqual(Value.Empty, target.parse("[File remote.download(\"ftp://192.168.17.04:2021/dir1/non-api.png\", \"non-api.png\", \"user1\", \"mypass123\")]"));
            Assert.AreEqual(target.addr, "ftp://192.168.17.04:2021/dir1/non-api.png");
            Assert.AreEqual(target.output, "non-api.png");
            Assert.AreEqual(target.user, "user1");
            Assert.AreEqual(target.pwd, "mypass123");
        }