예제 #1
0
        public void EmptyInput()
        {
            var dirs = new List <string>();

            dirs.Sort();
            List <string> compressed = DeltaSortedFileLists.CompressToBaseDirs(dirs).ToList();

            Assert.AreEqual(0, compressed.Count);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }