From 9c3006438b6ad868496785b326b080bc48b39554 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 23 Jan 2024 12:22:34 +1100 Subject: [PATCH] drop SerializableTheory (#763) --- .../TheoryTests/SerializableTheory.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 src/ApprovalTests/TheoryTests/SerializableTheory.cs diff --git a/src/ApprovalTests/TheoryTests/SerializableTheory.cs b/src/ApprovalTests/TheoryTests/SerializableTheory.cs deleted file mode 100644 index 747708eb..00000000 --- a/src/ApprovalTests/TheoryTests/SerializableTheory.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Runtime.Serialization.Formatters.Binary; - -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 assertEqual) - { - var stream = new MemoryStream(); - var formatter = new BinaryFormatter(); - formatter.Serialize(stream, original); - stream.Seek(0, 0); - var result = formatter.Deserialize(stream); - assertEqual(result, original); - } -} \ No newline at end of file