FFMpegCore/FFMpegCore.Test/DownloaderTests.cs

23 lines
718 B
C#
Raw Normal View History

using FFMpegCore.Extensions.Downloader;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FFMpegCore.Test;
[TestClass]
public class DownloaderTests
{
[TestMethod]
public void GetAllLatestSuiteTest()
{
2023-10-10 23:59:11 +02:00
var binaries = FFMpegDownloader.DownloadFFMpegSuite(binaries: FFMpegDownloader.FFMpegBinaries.FFMpeg).Result;
Assert.IsTrue(binaries.Count == 1); // many platforms have only ffmpeg and ffprobe
}
[TestMethod]
public void GetSpecificVersionTest()
{
2023-10-10 23:59:11 +02:00
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegDownloader.FFMpegVersions.V4_0, binaries: FFMpegDownloader.FFMpegBinaries.FFMpeg).Result;
Assert.IsTrue(binaries.Count == 1);
}
}