From 04fe35c71bbd1342b74685a1f02b94a5e1e162f6 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Thu, 7 Dec 2023 02:49:46 +0900 Subject: [PATCH] =?utf8?q?xUnit.net=202.6.2=20=E3=81=AB=E3=82=A2=E3=83=83?= =?utf8?q?=E3=83=97=E3=83=87=E3=83=BC=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 4 ++-- OpenTween.Tests/OpenTween.Tests.csproj | 6 +++--- OpenTween.Tests/TestUtils.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3829b7fe..ed50570d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -49,10 +49,10 @@ jobs: shell: pwsh run: | $altCoverVersion = '8.6.61' - $xunitVersion = '2.4.2' + $xunitVersion = '2.6.2' $targetFramework = 'net48' $altCoverPath = "$($env:NUGET_PACKAGES)\altcover\$($altCoverVersion)\tools\net472\AltCover.exe" - $xunitPath = "$($env:NUGET_PACKAGES)\xunit.runner.console\$($xunitVersion)\tools\net472\xunit.console.exe" + $xunitPath = "$($env:NUGET_PACKAGES)\xunit.runner.console\$($xunitVersion)\tools\net481\xunit.console.exe" $p = Start-Process ` -FilePath $altCoverPath ` diff --git a/OpenTween.Tests/OpenTween.Tests.csproj b/OpenTween.Tests/OpenTween.Tests.csproj index b3589775..77ed422b 100644 --- a/OpenTween.Tests/OpenTween.Tests.csproj +++ b/OpenTween.Tests/OpenTween.Tests.csproj @@ -32,12 +32,12 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/OpenTween.Tests/TestUtils.cs b/OpenTween.Tests/TestUtils.cs index e7fe87b8..c1c4e886 100644 --- a/OpenTween.Tests/TestUtils.cs +++ b/OpenTween.Tests/TestUtils.cs @@ -68,7 +68,7 @@ namespace OpenTween await testCode().ConfigureAwait(false); if (raisedEvent != null) - throw new Xunit.Sdk.RaisesException(typeof(void), raisedEvent.GetType()); + throw Xunit.Sdk.RaisesException.ForIncorrectType(typeof(void), raisedEvent.GetType()); } finally { @@ -81,7 +81,7 @@ namespace OpenTween void Handler(object s, PropertyChangedEventArgs e) { if (s == @object && e.PropertyName == propertyName) - throw new Xunit.Sdk.PropertyChangedException(propertyName); + throw Xunit.Sdk.PropertyChangedException.ForUnsetProperty(propertyName); } try -- 2.11.0