mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-13 01:34:14 +01:00
27 lines
670 B
C#
27 lines
670 B
C#
using System.Runtime.InteropServices;
|
|
using FFMpegCore.Helpers;
|
|
|
|
namespace FFMpegCore.Test;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
public class DownloaderTests
|
|
{
|
|
[TestClass]
|
|
public class FFMpegDownloaderTest
|
|
{
|
|
[TestMethod]
|
|
public void GetLatestVersionTest()
|
|
{
|
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
|
{
|
|
var files = FFMpegDownloader.GetLatestVersion();
|
|
Assert.IsTrue(files.Count == 3);
|
|
}
|
|
else
|
|
{
|
|
Assert.Inconclusive("This test is only for Windows");
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|