Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Tests/aweXpect.Core.Tests/Core/BecauseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class BecauseTests
public async Task ActionDelegate_ShouldApplyAsyncBecauseReason()
{
string because = "this is the reason";
Task<string> becauseTask = Task.Delay(5).ContinueWith(_ => because);
Task<string?> becauseTask = Task.Delay(5).ContinueWith(_ => because)!;
Action subject = () => throw new MyException();

async Task Act()
Expand Down Expand Up @@ -84,7 +84,7 @@ async Task Act()
public async Task FuncDelegate_ShouldApplyAsyncBecauseReason()
{
string because = "this is the reason";
Task<string> becauseTask = Task.Delay(5).ContinueWith(_ => because);
Task<string?> becauseTask = Task.Delay(5).ContinueWith(_ => because)!;
Func<int> subject = () => throw new MyException();

async Task Act()
Expand Down
Loading