Skip to content

Commit

Permalink
Merge pull request #87 from DuendeSoftware/dh/xunitv3
Browse files Browse the repository at this point in the history
Upgrade to xunit.v3
  • Loading branch information
damianh authored Jan 24, 2025
2 parents f66e901 + fccf3ca commit d9ea4db
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
12 changes: 6 additions & 6 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Duende.IdentityModel" Version="7.0.0" />
<PackageVersion Include="Duende.IdentityServer" Version="$(IdentityServerVersion)" />
<PackageVersion Include="MartinCostello.Logging.XUnit" Version="0.3.0" />
<PackageVersion Include="MartinCostello.Logging.XUnit.v3" Version="0.5.1" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="$(FrameworkVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="$(FrameworkVersion)" />
<PackageVersion Include="Microsoft.AspNetCore.TestHost" Version="$(FrameworkVersion)" />
Expand All @@ -46,7 +46,8 @@
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="$(ExtensionsVersion)" />
<PackageVersion Include="Microsoft.Extensions.Options" Version="$(ExtensionsVersion)" />
<PackageVersion Include="Microsoft.Extensions.Primitives" Version="$(ExtensionsVersion)" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageVersion Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="$(WilsonVersion)" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0"/>
<PackageVersion Include="Microsoft.NETCore.Jit" Version="2.0.8" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0"/>
<PackageVersion Include="MinVer" Version="6.0.0" />
Expand All @@ -56,11 +57,10 @@
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="SimpleExec" Version="12.0.0" />
<PackageVersion Include="System.IdentityModel.Tokens.Jwt" Version="$(WilsonVersion)" />
<PackageVersion Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="$(WilsonVersion)" />
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
<PackageVersion Include="Verify.Xunit" Version="27.0.1" />
<PackageVersion Include="xunit.core" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
<PackageVersion Include="Verify.XunitV3" Version="28.9.0" />
<PackageVersion Include="xunit.v3.core" Version="1.0.1" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Net;
using Duende.IdentityModel.Client;
using Duende.IdentityModel.OidcClient.Results;
using Xunit.Abstractions;

namespace Duende.IdentityModel.OidcClient
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" />
<PackageReference Include="PublicApiGenerator" />
<PackageReference Include="Verify.Xunit" />
<PackageReference Include="Verify.XunitV3" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net481'">
<PackageReference Include="System.Net.Http" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1083,8 +1083,8 @@ namespace Duende.IdentityModel.Client
public bool ContainsKey(string key) { }
public System.Collections.Generic.IEnumerable<string> GetValues(string name) { }
public Duende.IdentityModel.Client.Parameters Merge(Duende.IdentityModel.Client.Parameters? additionalValues = null) { }
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The FromObject method uses reflection in a way that is incompatible with trimming" +
".")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode(("The FromObject method uses reflection in a way that is incompatible with trimming" +
"."))]
public static Duende.IdentityModel.Client.Parameters? FromObject(object values) { }
}
public class PasswordTokenRequest : Duende.IdentityModel.Client.TokenRequest
Expand Down
6 changes: 3 additions & 3 deletions test.props
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MartinCostello.Logging.XUnit"/>
<PackageReference Include="MartinCostello.Logging.XUnit.v3"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Shouldly" />
<PackageReference Include="xunit.core" />
<PackageReference Include="xunit.v3.core" />
<PackageReference Include="xunit.runner.visualstudio">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<Using Include="Xunit"/>
<Using Include="Shouldly"/>
<Using Include="Xunit"/>
</ItemGroup>

</Project>

0 comments on commit d9ea4db

Please sign in to comment.