mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-14 02:04:14 +01:00
da7d1fafed
win32, win64, lnx32, lnx64, lnx-armhf, lnx-armel, lnx-arm64, osx64
24 lines
877 B
C#
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);
|
|
}
|
|
}
|