Skip to content

Commit

Permalink
Cleans up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svengeance committed Dec 24, 2023
1 parent 9df91b3 commit 26bbc9d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/QPdfSharp.Tests/QPdfTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ public async Task Can_write_pdf_file()
{
// Arrange
var outputFileName = "qgrug.pdf";
using var qpdf = new QPdf(TestAssets.Grug);

// Act
var qpdf = new QPdf(TestAssets.Grug);
qpdf.WriteFile(outputFileName);
qpdf.Dispose();

// Assert
File.Exists(outputFileName).Should().BeTrue();
Expand All @@ -74,8 +73,9 @@ public async Task Can_write_pdf_file()
public void Can_write_pdf_bytes()
{
// Arrange
// Act
using var qpdf = new QPdf(TestAssets.Grug);

// Act
var getPdfBytes = qpdf.WriteBytes().ToArray();

// Assert
Expand All @@ -86,8 +86,9 @@ public void Can_write_pdf_bytes()
public void Can_write_pdf_stream()
{
// Arrange
// Act
using var qpdf = new QPdf(TestAssets.Grug);

// Act
var pdfStream = qpdf.WriteStream();

// Assert
Expand Down

0 comments on commit 26bbc9d

Please sign in to comment.