Skip to content

Commit

Permalink
Add NoSplitWithMultipleScans test
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanfish committed Jan 26, 2025
1 parent 76a8154 commit 50260d3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions NAPS2.Lib.Tests/Automation/CommandLineIntegrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,26 @@ await _automationHelper.RunCommand(
AssertRecoveryCleanedUp();
}

[Fact]
public async Task NoSplitWithMultipleScans()
{
var path = $"{FolderPath}/test$(n).pdf";
await _automationHelper.RunCommand(
new AutomatedScanningOptions
{
OutputPath = path,
Number = 3,
Verbose = true
},
new ScanDriverFactoryBuilder()
.WithScannedImages(Image1, Image2, Image3)
.WithScannedImages(Image4, Image5)
.WithScannedImages()
.Build());
PdfAsserts.AssertImages($"{FolderPath}/test1.pdf", Image1, Image2, Image3, Image4, Image5);
AssertRecoveryCleanedUp();
}

[Fact]
public async Task SplitWithNoPlaceholder()
{
Expand Down

0 comments on commit 50260d3

Please sign in to comment.