Skip to content

Commit

Permalink
#1833 windows
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Dec 19, 2024
1 parent 33a579f commit 11c78fe
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ public class FfMpegDownloadTest
{
private const string DependencyFolderName = "FfMpegDownloadTest";
private readonly FfmpegBinariesIndex _exampleFfmpegBinariesIndex;
private readonly bool _isWindows;
private readonly FakeIHttpClientHelper _httpClientHelper;

private readonly FakeIStorage _storage = new();

public FfMpegDownloadTest()
{
_exampleFfmpegBinariesIndex = CreateExampleFile();
_isWindows = new AppSettings().IsWindows;

_httpClientHelper =
new FakeIHttpClientHelper(_storage,
Expand Down Expand Up @@ -305,6 +307,12 @@ public async Task DownloadFfMpeg_PrepareBeforeRunningFail()

var resultPrepFail = await ffmpegDownload.DownloadFfMpeg();

if ( _isWindows )
{
Assert.AreEqual(FfmpegDownloadStatus.Ok, resultPrepFail);
return;
}

Assert.AreEqual(FfmpegDownloadStatus.PrepareBeforeRunningFailed, resultPrepFail);
}

Expand Down

0 comments on commit 11c78fe

Please sign in to comment.