FFMpegCore/FFMpegCore.Test/DownloaderTests.cs
Kerry Cao da7d1fafed support added for linux, macos
win32, win64, lnx32, lnx64, lnx-armhf, lnx-armel, lnx-arm64, osx64
2023-09-06 01:25:51 -06:00

24 lines
877 B
C#

using FFMpegCore.Helpers;
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);
}
}