FFMpegCore/FFMpegCore.Test/DownloaderTests.cs

25 lines
658 B
C#
Raw Normal View History

using FFMpegCore.Extensions.Downloader;
2025-01-27 22:22:47 -05:00
using FFMpegCore.Extensions.Downloader.Enums;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FFMpegCore.Test;
2025-01-27 22:39:35 -05:00
[Ignore]
[TestClass]
public class DownloaderTests
{
[TestMethod]
public void GetSpecificVersionTest()
{
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1).Result;
Assert.IsTrue(binaries.Count == 1);
}
2025-01-27 22:37:03 -05:00
[TestMethod]
public void GetAllLatestSuiteTest()
{
var binaries = FFMpegDownloader.DownloadFFMpegSuite().Result;
Assert.IsTrue(binaries.Count == 2); // many platforms have only ffmpeg and ffprobe
}
}