示例#1
0
        public void CheckDependenciesThrowsExceptionTest()
        {
            string        testpath         = AppDomain.CurrentDomain.BaseDirectory.ToString();
            List <string> testDependencies = new List <string>()
            {
                "\\ffmpeg.exe", "\\youtube-dl.exe", "\\randomfile.txt"
            };

            DownloadUI testlogic = new DownloadUI();

            Assert.ThrowsException <System.IO.FileNotFoundException>(() => testlogic.CheckDependencies(testpath, testDependencies));
        }
示例#2
0
        public void CheckDependenciesSucceedTest()
        {
            string        testpath         = AppDomain.CurrentDomain.BaseDirectory.ToString();
            List <string> testDependencies = new List <string>()
            {
                "\\ffmpeg.exe", "\\youtube-dl.exe"
            };

            DownloadUI testlogic = new DownloadUI();

            testlogic.CheckDependencies(testpath, testDependencies);
        }