Update DownloaderTests.cs

This commit is contained in:
K 2023-10-10 15:59:11 -06:00 committed by GitHub
parent 22fa002394
commit 6524b1cd4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,21 +6,17 @@ namespace FFMpegCore.Test;
[TestClass]
public class DownloaderTests
{
[Ignore]
[TestMethod]
public void GetAllLatestSuiteTest()
{
var binaries = FFMpegDownloader.DownloadFFMpegSuite(binaries: FFMpegDownloader.FFMpegBinaries.FFProbe |
FFMpegDownloader.FFMpegBinaries.FFMpeg |
FFMpegDownloader.FFMpegBinaries.FFPlay).Result;
Assert.IsTrue(binaries.Count >= 2); // many platforms have only ffmpeg and ffprobe
var binaries = FFMpegDownloader.DownloadFFMpegSuite(binaries: FFMpegDownloader.FFMpegBinaries.FFMpeg).Result;
Assert.IsTrue(binaries.Count == 1); // many platforms have only ffmpeg and ffprobe
}
[Ignore]
[TestMethod]
public void GetSpecificVersionTest()
{
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegDownloader.FFMpegVersions.V4_0).Result;
Assert.IsTrue(binaries.Count == 2);
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegDownloader.FFMpegVersions.V4_0, binaries: FFMpegDownloader.FFMpegBinaries.FFMpeg).Result;
Assert.IsTrue(binaries.Count == 1);
}
}