Skip to content

Commit

Permalink
refactor: clean PBT test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tr00d committed Jun 18, 2024
1 parent 5f04107 commit c3615eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Vonage.Test/Common/AccountKeyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class AccountKeyTest
[Property]
public Property Parse_ShouldReturnFailure_GivenApiKeyLengthIsDifferentThan8() =>
Prop.ForAll(
Arb.From<string>().MapFilter(_ => _, value => !string.IsNullOrWhiteSpace(value) && value.Length != 8),
Arb.From<string>().Filter(value => !string.IsNullOrWhiteSpace(value) && value.Length != 8),
invalidApiKey => AccountKey.Parse(invalidApiKey)
.Should()
.BeFailure(ResultFailure.FromErrorMessage("AccountKey length should be 8.")));
Expand Down

0 comments on commit c3615eb

Please sign in to comment.