fix: Update SwissQrCode test - ArgumentException to BadRequestException
This commit is contained in:
@@ -149,7 +149,7 @@ public class DevExpressSwissQrCodeProcessorTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public async Task ExtractSwissQrCodeAsync_StreamNotAtBeginning_ThrowsArgumentException()
|
public async Task ExtractSwissQrCodeAsync_StreamNotAtBeginning_ThrowsBadRequestException()
|
||||||
{
|
{
|
||||||
// Arrange: Valid PDF but stream position is not at 0
|
// Arrange: Valid PDF but stream position is not at 0
|
||||||
using var pdfStream = LoadTestPdf("valid.pdf");
|
using var pdfStream = LoadTestPdf("valid.pdf");
|
||||||
@@ -158,8 +158,7 @@ public class DevExpressSwissQrCodeProcessorTests
|
|||||||
// Act & Assert
|
// Act & Assert
|
||||||
var act = async () => await _sut.ExtractSwissQrCodeAsync(pdfStream);
|
var act = async () => await _sut.ExtractSwissQrCodeAsync(pdfStream);
|
||||||
|
|
||||||
await act.Should().ThrowAsync<ArgumentException>()
|
await act.Should().ThrowAsync<BadRequestException>();
|
||||||
.WithMessage("*Position = 0*");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Reference in New Issue
Block a user