fix: Update SwissQrCode test - ArgumentException to BadRequestException
This commit is contained in:
@@ -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<ArgumentException>()
|
||||
.WithMessage("*Position = 0*");
|
||||
await act.Should().ThrowAsync<BadRequestException>();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user