public void EmptyInput() { var dirs = new List <string>(); dirs.Sort(); List <string> compressed = DeltaSortedFileLists.CompressToBaseDirs(dirs).ToList(); Assert.AreEqual(0, compressed.Count); }
public void TestCompressToTwo() { var dirs = new List <string>() { "x", "a", "a\\b", "a\\c", "a\\x", "x\\x" }; dirs.Sort(); List <string> compressed = DeltaSortedFileLists.CompressToBaseDirs(dirs).ToList(); Assert.AreEqual(2, compressed.Count); }
public void TestSimple1() { var dirs = new List <string>() { "a", "b", "c", "a\\x" }; dirs.Sort(); List <string> compressed = DeltaSortedFileLists.CompressToBaseDirs(dirs).ToList(); Assert.AreEqual(3, compressed.Count); }