diff --git a/src/FluentAssertions.Json/FluentAssertions.Json.csproj b/src/FluentAssertions.Json/FluentAssertions.Json.csproj
index a58679b..bc327d3 100644
--- a/src/FluentAssertions.Json/FluentAssertions.Json.csproj
+++ b/src/FluentAssertions.Json/FluentAssertions.Json.csproj
@@ -11,9 +11,12 @@
https://github.com/PosInformatique/PosInformatique.FluentAssertions.Json
README.md
+ 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
@@ -30,7 +33,7 @@
-
+
diff --git a/src/FluentAssertions.Json/JsonFluentAssertionsExtensions.cs b/src/FluentAssertions.Json/JsonFluentAssertionsExtensions.cs
index 10629c3..746b1dc 100644
--- a/src/FluentAssertions.Json/JsonFluentAssertionsExtensions.cs
+++ b/src/FluentAssertions.Json/JsonFluentAssertionsExtensions.cs
@@ -76,7 +76,7 @@ public static void BeJsonDeserializableInto(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();