Пример #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);
        }