Skip to content

Commit

Permalink
Use the FluentAssertions 6.0.0 library. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesTourreau authored Oct 15, 2023
1 parent f061c4a commit dd41169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/FluentAssertions.Json/FluentAssertions.Json.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
<PackageProjectUrl>https://github.com/PosInformatique/PosInformatique.FluentAssertions.Json</PackageProjectUrl>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>
1.0.5
- Use the FluentAssertions library version 6.0.0 instead of 5.0.0 to fix breaking changes of the API.

1.0.4
- Ignore the properties with the [JsonIgnore] attribute.

1.0.3
- Target the .NET Standard 2.0 instead of .NET Core 6.0

Expand All @@ -30,7 +33,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.0.0" />
<PackageReference Include="FluentAssertions" Version="6.0.0" />
<PackageReference Include="System.Text.Json" Version="5.0.0" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static void BeJsonDeserializableInto<T>(this ObjectAssertions assertions,

private static bool IsIgnoredProperty(IMemberInfo member)
{
var property = member.SelectedMemberInfo.DeclaringType.GetProperty(member.SelectedMemberInfo.Name);
var property = member.DeclaringType.GetProperty(member.Name);

var attribute = property.GetCustomAttribute<JsonIgnoreAttribute>();

Expand Down

0 comments on commit dd41169

Please sign in to comment.