mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
28 lines
670 B
C#
28 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");
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|