From bbc227041ce555e75dc9481ccdafedfd0ee1b873 Mon Sep 17 00:00:00 2001 From: Kleis Auke Wolthuizen Date: Thu, 9 May 2024 11:51:14 +0200 Subject: [PATCH] Debug --- tests/NetVips.Tests/IoFuncsTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/NetVips.Tests/IoFuncsTests.cs b/tests/NetVips.Tests/IoFuncsTests.cs index a7901f68..9c010c68 100644 --- a/tests/NetVips.Tests/IoFuncsTests.cs +++ b/tests/NetVips.Tests/IoFuncsTests.cs @@ -9,8 +9,11 @@ namespace NetVips.Tests public class IoFuncsTests : IClassFixture { + private readonly ITestOutputHelper _testOutputHelper; + public IoFuncsTests(TestsFixture testsFixture, ITestOutputHelper output) { + _testOutputHelper = output; testsFixture.SetUpLogging(output); } @@ -240,8 +243,9 @@ public void TestSetProgress() var progress = new Progress(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); }