mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 01:55:45 +00:00
Make download tests run async
This commit is contained in:
parent
bb90cb1ea1
commit
f919a05d43
1 changed files with 6 additions and 7 deletions
|
|
@ -1,6 +1,5 @@
|
|||
using FFMpegCore.Extensions.Downloader;
|
||||
using FFMpegCore.Extensions.Downloader.Enums;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace FFMpegCore.Test;
|
||||
|
||||
|
|
@ -8,16 +7,16 @@ namespace FFMpegCore.Test;
|
|||
public class DownloaderTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void GetSpecificVersionTest()
|
||||
public async Task GetSpecificVersionTest()
|
||||
{
|
||||
var binaries = FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1).Result;
|
||||
Assert.IsTrue(binaries.Count == 2);
|
||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1);
|
||||
Assert.HasCount(2, binaries);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void GetAllLatestSuiteTest()
|
||||
public async Task GetAllLatestSuiteTest()
|
||||
{
|
||||
var binaries = FFMpegDownloader.DownloadFFMpegSuite().Result;
|
||||
Assert.IsTrue(binaries.Count == 2); // many platforms have only ffmpeg and ffprobe
|
||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite();
|
||||
Assert.HasCount(2, binaries);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue