Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 24, 2023
2 parents 79c86cb + 6ef195e commit 0d57344
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ApprovalTests.Tests/Core/SerializableExceptionsTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using ApprovalTests.Core.Exceptions;
using ApprovalTests.TheoryTests;
#if NET48

using ApprovalTests.Core.Exceptions;
using ApprovalTests.TheoryTests;
[TestFixture]
public class SerializableExceptionsTest
{
Expand All @@ -16,4 +17,5 @@ public void TestSerializable()

static void Verify(object o) =>
SerializableTheory.Verify(o, Assert.AreEqual);
}
}
#endif
1 change: 1 addition & 0 deletions src/ApprovalTests/TheoryTests/SerializableTheory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace ApprovalTests.TheoryTests;

[Obsolete("https://github.com/dotnet/designs/blob/main/accepted/2020/better-obsoletion/binaryformatter-obsoletion.md")]
public static class SerializableTheory
{
public static void Verify(object original, Action<object, object> assertEqual)
Expand Down

0 comments on commit 0d57344

Please sign in to comment.