Example #1
0
        public void TestSelectFFmpegPathForWindows()
        {
            const string expected = "ffmpeg.exe";

            IEnumerable <Model.FileInfo> files = GetWindowsPathMocks();

            string path = FFmpegExecutablesHelper.SelectFFmpegPath(files);

            Assert.Equal(expected, path);
        }
Example #2
0
        public void TestSelectFFprobePathForLinux()
        {
            const string expected = "ffprobe";

            IEnumerable <Model.FileInfo> files = GetLinuxPathMocks();

            string path = FFmpegExecutablesHelper.SelectFFprobePath(files);

            Assert.Equal(expected, path);
        }