Skip to content

Commit

Permalink
Mark SerializableTheory as obsolete (#756)
Browse files Browse the repository at this point in the history
* mark SerializableTheory as obsolete

* Update SerializableExceptionsTest.cs
  • Loading branch information
SimonCropp authored Nov 24, 2023
1 parent ce94b46 commit 6ef195e
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 6ef195e

Please sign in to comment.