From fa4e55242d0609c866ab2019eb87f939239a9003 Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 21 Jul 2026 09:26:51 +0200 Subject: [PATCH] fix: Update SwissQrCode test - ArgumentException to BadRequestException --- .../QrCodeProcessing/DevExpressSwissQrCodeProcessorTests.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DocumentOperator.Tests/Unit/Infrastructure/Services/QrCodeProcessing/DevExpressSwissQrCodeProcessorTests.cs b/DocumentOperator.Tests/Unit/Infrastructure/Services/QrCodeProcessing/DevExpressSwissQrCodeProcessorTests.cs index 54938c9..5966f07 100644 --- a/DocumentOperator.Tests/Unit/Infrastructure/Services/QrCodeProcessing/DevExpressSwissQrCodeProcessorTests.cs +++ b/DocumentOperator.Tests/Unit/Infrastructure/Services/QrCodeProcessing/DevExpressSwissQrCodeProcessorTests.cs @@ -149,7 +149,7 @@ public class DevExpressSwissQrCodeProcessorTests } [Fact] - public async Task ExtractSwissQrCodeAsync_StreamNotAtBeginning_ThrowsArgumentException() + public async Task ExtractSwissQrCodeAsync_StreamNotAtBeginning_ThrowsBadRequestException() { // Arrange: Valid PDF but stream position is not at 0 using var pdfStream = LoadTestPdf("valid.pdf"); @@ -158,8 +158,7 @@ public class DevExpressSwissQrCodeProcessorTests // Act & Assert var act = async () => await _sut.ExtractSwissQrCodeAsync(pdfStream); - await act.Should().ThrowAsync() - .WithMessage("*Position = 0*"); + await act.Should().ThrowAsync(); } #endregion