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 `
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="xunit" Version="2.4.2" />
- <PackageReference Include="xunit.runner.console" Version="2.4.2">
+ <PackageReference Include="xunit" Version="2.6.2" />
+ <PackageReference Include="xunit.runner.console" Version="2.6.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
- <PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
+ <PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
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
{
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