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