Skip to content

Commit eecb20f

Browse files
committed
Fix tests
1 parent 2b638a9 commit eecb20f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dotnet/test/common/BiDi/BrowsingContext/BrowsingContextTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public async Task CanCaptureScreenshot()
250250
var screenshot = await context.CaptureScreenshotAsync();
251251

252252
Assert.That(screenshot, Is.Not.Null);
253-
Assert.That(screenshot.Data, Is.Not.Empty);
253+
Assert.That(screenshot.Data.Length, Is.Not.Zero);
254254
}
255255

256256
[Test]
@@ -263,7 +263,7 @@ public async Task CanCaptureScreenshotWithParameters()
263263
});
264264

265265
Assert.That(screenshot, Is.Not.Null);
266-
Assert.That(screenshot.Data, Is.Not.Empty);
266+
Assert.That(screenshot.Data.Length, Is.Not.Zero);
267267
}
268268

269269
[Test]
@@ -276,7 +276,7 @@ public async Task CanCaptureScreenshotOfViewport()
276276
});
277277

278278
Assert.That(screenshot, Is.Not.Null);
279-
Assert.That(screenshot.Data, Is.Not.Empty);
279+
Assert.That(screenshot.Data.Length, Is.Not.Zero);
280280
}
281281

282282
[Test]
@@ -292,7 +292,7 @@ public async Task CanCaptureScreenshotOfElement()
292292
});
293293

294294
Assert.That(screenshot, Is.Not.Null);
295-
Assert.That(screenshot.Data, Is.Not.Empty);
295+
Assert.That(screenshot.Data.Length, Is.Not.Zero);
296296
}
297297

298298
[Test]
@@ -313,6 +313,6 @@ public async Task CanPrintPage()
313313
var pdf = await context.PrintAsync();
314314

315315
Assert.That(pdf, Is.Not.Null);
316-
Assert.That(pdf.Data, Is.Not.Empty);
316+
Assert.That(pdf.Data.Length, Is.Not.Zero);
317317
}
318318
}

0 commit comments

Comments
 (0)