FFMpegCore/FFMpegCore.Test/DownloaderTests.cs

25 lines
880 B
C#
Raw Normal View History

using FFMpegCore.Downloader;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FFMpegCore.Test;
[TestClass]
public class DownloaderTests
{
[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
}
[TestMethod]
public void GetSpecificVersionTest()
{
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegDownloader.FFMpegVersions.V4_0).Result;
Assert.IsTrue(binaries.Count == 2);
}
}