Example #1
0
        public void ParseWindows2Test()
        {
            var entry = WindowsFtpPlatform.ParseLine("    04-04-15  12:12PM       <DIR>          New folder", null);

            Assert.IsNotNull(entry);
            Assert.AreEqual(FtpEntryType.Directory, entry.Type);
            Assert.AreEqual("New folder", entry.Name);
        }
Example #2
0
        public void ParseWindowsTest()
        {
            var entry = WindowsFtpPlatform.ParseLine("    03-07-15  03:52PM                22286 03265480-photo-logo.png", null);

            Assert.IsNotNull(entry);
            Assert.AreEqual(FtpEntryType.File, entry.Type);
            Assert.AreEqual("03265480-photo-logo.png", entry.Name);
        }