FFMpegCore/FFMpegCore.Test/DownloaderTests.cs

27 lines
917 B
C#
Raw Normal View History

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