Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Passthrough ValueTask
Browse files Browse the repository at this point in the history
  • Loading branch information
brminnick committed Mar 14, 2021
1 parent 90c3c97 commit af4e8db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ jobs:
inputs:
script: |
dotnet restore $(PathToUnitTestCsproj) /p:Configuration=Release
$(PathToMsBuildOnMacOS) $(PathToUnitTestCsproj) /p:Configuration=UnitTest /p:Platform="" /restore /t:Build
$(PathToMsBuildOnMacOS) $(PathToUnitTestCsproj) /p:Configuration=Release /restore /t:Build
echo "********** Running Unit Tests on .NET Framework (xUnit does not support dotnet test for .NET Framework: https://xunit.net/docs/getting-started/netfx/cmdline) **********"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public abstract class BaseAsyncValueCommandTests : BaseCommandTests

protected new ValueTask ParameterImmediateNullReferenceExceptionTask(int delay) => throw new NullReferenceException();

protected async ValueTask ValueTaskDelay(int delay) => await Task.Delay(delay).ConfigureAwait(false);

protected new async ValueTask NoParameterDelayedNullReferenceExceptionTask()
{
Expand All @@ -28,5 +27,7 @@ protected new async ValueTask IntParameterDelayedNullReferenceExceptionTask(int
await Task.Delay(delay);
throw new NullReferenceException();
}

ValueTask ValueTaskDelay(int delay) => new ValueTask(Task.Delay(delay));
}
}

0 comments on commit af4e8db

Please sign in to comment.