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)); }
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); }