mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 01:55:45 +00:00
Delete downloaded binaries after assert
This commit is contained in:
parent
2852692250
commit
b1eb8da6a9
1 changed files with 16 additions and 2 deletions
|
|
@ -10,13 +10,27 @@ public class DownloaderTests
|
||||||
public async Task GetSpecificVersionTest()
|
public async Task GetSpecificVersionTest()
|
||||||
{
|
{
|
||||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1);
|
var binaries = await FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1);
|
||||||
Assert.HasCount(2, binaries);
|
try
|
||||||
|
{
|
||||||
|
Assert.HasCount(2, binaries);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
binaries.ForEach(File.Delete);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public async Task GetAllLatestSuiteTest()
|
public async Task GetAllLatestSuiteTest()
|
||||||
{
|
{
|
||||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite();
|
var binaries = await FFMpegDownloader.DownloadFFMpegSuite();
|
||||||
Assert.HasCount(2, binaries);
|
try
|
||||||
|
{
|
||||||
|
Assert.HasCount(2, binaries);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
binaries.ForEach(File.Delete);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue