public void OneLineWithBadSize() { var items = CopyFiles.ReadInputfile(new string[] { "kacsi\tbumsti" }); var i = items.First(); Assert.AreEqual("bumsti", i.relativeFilename); Assert.IsNull(i.filesize); }
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); }
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); }