From 6595694b4aa24a90d92f6a42de8ea9ec7b468b84 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Wed, 31 Jul 2024 13:15:04 +1000 Subject: [PATCH] refs --- docs/serializer-settings.md | 4 ++-- src/Directory.Packages.props | 4 ++-- src/Verify.Tests/Serialization/SerializationTests.cs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/serializer-settings.md b/docs/serializer-settings.md index 118ed013cc..a21617eedd 100644 --- a/docs/serializer-settings.md +++ b/docs/serializer-settings.md @@ -205,7 +205,7 @@ public Task AddExtraSettings() var settings = new VerifySettings(); settings .AddExtraSettings( - _ => _.Error = (currentObject, originalObject, location, exception, handled) => + _ => _.SerializeError = (currentObject, originalObject, location, exception, handled) => Console.WriteLine(location.Member)); return Verify("Value", settings); } @@ -223,7 +223,7 @@ public Task AddExtraSettings() public Task AddExtraSettingsFluent() => Verify("Value") .AddExtraSettings( - _ => _.Error = (currentObject, originalObject, location, exception, handled) => + _ => _.SerializeError = (currentObject, originalObject, location, exception, handled) => Console.WriteLine(location.Member)); ``` snippet source | anchor diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 80f2198c72..cb1958f070 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -4,8 +4,8 @@ false - - + + diff --git a/src/Verify.Tests/Serialization/SerializationTests.cs b/src/Verify.Tests/Serialization/SerializationTests.cs index a73973bb45..057b030254 100644 --- a/src/Verify.Tests/Serialization/SerializationTests.cs +++ b/src/Verify.Tests/Serialization/SerializationTests.cs @@ -482,7 +482,7 @@ public Task AddExtraSettings() var settings = new VerifySettings(); settings .AddExtraSettings( - _ => _.Error = (currentObject, originalObject, location, exception, handled) => + _ => _.SerializeError = (currentObject, originalObject, location, exception, handled) => Console.WriteLine(location.Member)); return Verify("Value", settings); } @@ -495,7 +495,7 @@ public Task AddExtraSettings() public Task AddExtraSettingsFluent() => Verify("Value") .AddExtraSettings( - _ => _.Error = (currentObject, originalObject, location, exception, handled) => + _ => _.SerializeError = (currentObject, originalObject, location, exception, handled) => Console.WriteLine(location.Member)); #endregion