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()
|
||||
{
|
||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite(FFMpegVersions.V6_1);
|
||||
try
|
||||
{
|
||||
Assert.HasCount(2, binaries);
|
||||
}
|
||||
finally
|
||||
{
|
||||
binaries.ForEach(File.Delete);
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public async Task GetAllLatestSuiteTest()
|
||||
{
|
||||
var binaries = await FFMpegDownloader.DownloadFFMpegSuite();
|
||||
try
|
||||
{
|
||||
Assert.HasCount(2, binaries);
|
||||
}
|
||||
finally
|
||||
{
|
||||
binaries.ForEach(File.Delete);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue