From 54b64f1d76498909945f4ed66ab6d05fcf1fa8a3 Mon Sep 17 00:00:00 2001 From: Steve Desmond Date: Wed, 1 Nov 2023 11:18:31 -0400 Subject: [PATCH] Upgrade to xunit v2.6 --- test/AppTests.cs | 8 ++++---- test/GitHubLabelSync.Tests.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/AppTests.cs b/test/AppTests.cs index 31341d5..c929405 100644 --- a/test/AppTests.cs +++ b/test/AppTests.cs @@ -118,10 +118,10 @@ public async Task ThrowsOnAccessValidationFailure() var settings = new Settings { Name = "ecoAPM" }; //act - var task = app.Run(settings); + async Task task() => await app.Run(settings); //assert - await Assert.ThrowsAnyAsync(async () => await task); + await Assert.ThrowsAnyAsync(task); } [Fact] @@ -136,9 +136,9 @@ public async Task ThrowsOnUserValidationFailure() var settings = new Settings { Name = "ecoAPM" }; //act - var task = app.Run(settings); + async Task task() => await app.Run(settings); //assert - await Assert.ThrowsAnyAsync(async () => await task); + await Assert.ThrowsAnyAsync(task); } } \ No newline at end of file diff --git a/test/GitHubLabelSync.Tests.csproj b/test/GitHubLabelSync.Tests.csproj index 3829934..1471a23 100644 --- a/test/GitHubLabelSync.Tests.csproj +++ b/test/GitHubLabelSync.Tests.csproj @@ -7,7 +7,7 @@ - +