Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed May 9, 2024
1 parent 5006fa8 commit bbc2270
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/NetVips.Tests/IoFuncsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ namespace NetVips.Tests

public class IoFuncsTests : IClassFixture<TestsFixture>
{
private readonly ITestOutputHelper _testOutputHelper;

public IoFuncsTests(TestsFixture testsFixture, ITestOutputHelper output)
{
_testOutputHelper = output;
testsFixture.SetUpLogging(output);
}

Expand Down Expand Up @@ -240,8 +243,9 @@ public void TestSetProgress()
var progress = new Progress<int>(percent => lastPercent = percent);
im.SetProgress(progress);

var buf = im.DzsaveBuffer("image-pyramid");
var buf = im.DzsaveBuffer("image-pyramid", suffix: ".png");
Assert.True(buf.Length > 0);
_testOutputHelper.WriteLine(lastPercent.ToString());
Assert.True(lastPercent <= 100);
}

Expand Down

0 comments on commit bbc2270

Please sign in to comment.