Ejemplo n.º 1
0
        public void OneLineWithBadSize()
        {
            var items = CopyFiles.ReadInputfile(new string[] { "kacsi\tbumsti" });
            var i     = items.First();

            Assert.AreEqual("bumsti", i.relativeFilename);
            Assert.IsNull(i.filesize);
        }
Ejemplo n.º 2
0
        public void OneLineWithSizeandMoreColumns()
        {
            var items = CopyFiles.ReadInputfile(new string[] { "doesnotmatter\t99\tbumsti" });
            var i     = items.First();

            Assert.AreEqual("bumsti", i.relativeFilename);
            Assert.AreEqual((ulong)99, i.filesize.Value);
        }
Ejemplo n.º 3
0
        public void OneLineWithSize()
        {
            var items = CopyFiles.ReadInputfile(new string[] { "100\tbumsti" });
            var i     = items.First();

            Assert.AreEqual("bumsti", i.relativeFilename);
            Assert.AreEqual((ulong)100, i.filesize.Value);
        }