Skip to content

Commit

Permalink
Add missing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
amantinband committed Jan 5, 2024
1 parent da73db4 commit f09e070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/ErrorOr.ThenAsyncTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public async Task CallingThenAsync_WhenIsError_ShouldReturnErrors()
// Act
ErrorOr<string> result = await errorOrString
.ThenAsync(str => ConvertToIntAsync(str))
.ThenAsync(num => Task.FromResult(num * 2))
.ThenAsync(num => ConvertToStringAsync(num));

// Assert
Expand Down
1 change: 1 addition & 0 deletions tests/ErrorOr.ThenTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public void CallingThen_WhenIsError_ShouldReturnErrors()
// Act
ErrorOr<string> result = errorOrString
.Then(str => ConvertToInt(str))
.Then(num => num * 2)
.Then(num => ConvertToString(num));

// Assert
Expand Down

0 comments on commit f09e070

Please sign in to comment.