Exemple #1
0
        public void TestFindAllTarsFileWhenNoExistsDirectory()
        {
            var dir       = Path.Combine(Directory.GetCurrentDirectory(), "ffd");
            var tarsFiles = new CodecsCommand().FindAllTarsFile(dir);

            Assert.Empty(tarsFiles);
        }
Exemple #2
0
        public void TestFindAllTarsFileWhenNoExistsFile()
        {
            var file      = Path.Combine(Directory.GetCurrentDirectory(), "ff", "a.t");
            var tarsFiles = new CodecsCommand().FindAllTarsFile(file);

            Assert.Empty(tarsFiles);
        }
Exemple #3
0
        public void TestFindAllTarsFileWhenExistsFile()
        {
            var file      = Path.Combine(Directory.GetCurrentDirectory(), "ff", "test", "a.tars");
            var tarsFiles = new CodecsCommand().FindAllTarsFile(file);

            Assert.Single(tarsFiles);
            Assert.EndsWith("a.tars", tarsFiles[0]);
        }
Exemple #4
0
        public void TestFindAllTarsFileWhenExistsDirectory()
        {
            var dir       = Path.Combine(Directory.GetCurrentDirectory(), "ff");
            var tarsFiles = new CodecsCommand().FindAllTarsFile(dir);

            Assert.Single(tarsFiles);
            Assert.EndsWith("a.tars", tarsFiles[0]);

            new CodecsCommand().Generate(tarsFiles, Directory.GetCurrentDirectory());
        }