diff --git a/src/Verify/Serialization/SerializationSettings_IgnoreType.cs b/src/Verify/Serialization/SerializationSettings_IgnoreType.cs index d58ebaeaf1..c62f56e743 100644 --- a/src/Verify/Serialization/SerializationSettings_IgnoreType.cs +++ b/src/Verify/Serialization/SerializationSettings_IgnoreType.cs @@ -6,7 +6,7 @@ partial class SerializationSettings public void IgnoreMembersWithType() where T : notnull => - ignoredTypes.Add(typeof(T)); + IgnoreMembersWithType(typeof(T)); public void IgnoreMembersWithType(Type type) => ignoredTypes.Add(type);