mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-02-18 11:02:31 +00:00
23 lines
649 B
C#
23 lines
649 B
C#
using FFMpegCore.Extensions.Downloader;
|
|
using FFMpegCore.Extensions.Downloader.Enums;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace FFMpegCore.Test;
|
|
|
|
[TestClass]
|
|
public class DownloaderTests
|
|
{
|
|
[TestMethod]
|
|
public void GetSpecificVersionTest()
|
|
{
|
|
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1).Result;
|
|
Assert.IsTrue(binaries.Count == 2);
|
|
}
|
|
|
|
[TestMethod]
|
|
public void GetAllLatestSuiteTest()
|
|
{
|
|
var binaries = FFMpegDownloader.DownloadFFMpegSuite().Result;
|
|
Assert.IsTrue(binaries.Count == 2); // many platforms have only ffmpeg and ffprobe
|
|
}
|
|
}
|