Skip to content

Commit af4e8db

Browse files
Passthrough ValueTask
1 parent 90c3c97 commit af4e8db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
inputs:
202202
script: |
203203
dotnet restore $(PathToUnitTestCsproj) /p:Configuration=Release
204-
$(PathToMsBuildOnMacOS) $(PathToUnitTestCsproj) /p:Configuration=UnitTest /p:Platform="" /restore /t:Build
204+
$(PathToMsBuildOnMacOS) $(PathToUnitTestCsproj) /p:Configuration=Release /restore /t:Build
205205
206206
echo "********** Running Unit Tests on .NET Framework (xUnit does not support dotnet test for .NET Framework: https://xunit.net/docs/getting-started/netfx/cmdline) **********"
207207

src/CommunityToolkit/Xamarin.CommunityToolkit.UnitTests/ObjectModel/ICommandTests/AsyncValueCommandTests/BaseAsyncValueCommandTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ public abstract class BaseAsyncValueCommandTests : BaseCommandTests
1515

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

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

2019
protected new async ValueTask NoParameterDelayedNullReferenceExceptionTask()
2120
{
@@ -28,5 +27,7 @@ public abstract class BaseAsyncValueCommandTests : BaseCommandTests
2827
await Task.Delay(delay);
2928
throw new NullReferenceException();
3029
}
30+
31+
ValueTask ValueTaskDelay(int delay) => new ValueTask(Task.Delay(delay));
3132
}
3233
}

0 commit comments

Comments
 (0)