Skip to content

Commit f213199

Browse files
committed
Remove support for serialization from "AkkaEqualException"
1 parent 36547f0 commit f213199

File tree

4 files changed

+0
-45
lines changed

4 files changed

+0
-45
lines changed

src/contrib/testkits/Akka.TestKit.Xunit2.Tests/Internals/AkkaEqualExceptionSpec.cs

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/contrib/testkits/Akka.TestKit.Xunit2/Internals/AkkaEqualException.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//-----------------------------------------------------------------------
77

88
using System;
9-
using System.Runtime.Serialization;
109
using Xunit.Sdk;
1110

1211
#nullable enable
@@ -15,7 +14,6 @@ namespace Akka.TestKit.Xunit2.Internals
1514
/// <summary>
1615
/// TBD
1716
/// </summary>
18-
[Serializable]
1917
public class AkkaEqualException : XunitException
2018
{
2119
// Length of "Expected: " and "Actual: "
@@ -53,14 +51,6 @@ public static AkkaEqualException ForMismatchedValues(
5351
public AkkaEqualException(string format = "", params object[] args)
5452
: base(BuildAssertionMessage(format, args)) { }
5553

56-
/// <summary>
57-
/// Initializes a new instance of the <see cref="AkkaEqualException"/> class.
58-
/// </summary>
59-
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
60-
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
61-
protected AkkaEqualException(SerializationInfo info, StreamingContext context)
62-
: base(info.GetString("Message")) { }
63-
6454
/// <summary>
6555
/// Builds assertion message by applying specified arguments to the format string.
6656
/// When no arguments are specified, format string is returned as-is.

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveTestKitXunit2.DotNet.verified.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace Akka.TestKit.Xunit2.Internals
3737
public class AkkaEqualException : Xunit.Sdk.XunitException
3838
{
3939
public AkkaEqualException(string format = "", params object[] args) { }
40-
protected AkkaEqualException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
4140
[return: System.Runtime.CompilerServices.NullableAttribute(1)]
4241
public static Akka.TestKit.Xunit2.Internals.AkkaEqualException ForMismatchedValues(object expected, object actual, string format = null, [System.Runtime.CompilerServices.NullableAttribute(1)] params object[] args) { }
4342
}

src/core/Akka.API.Tests/verify/CoreAPISpec.ApproveTestKitXunit2.Net.verified.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace Akka.TestKit.Xunit2.Internals
3737
public class AkkaEqualException : Xunit.Sdk.XunitException
3838
{
3939
public AkkaEqualException(string format = "", params object[] args) { }
40-
protected AkkaEqualException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
4140
[return: System.Runtime.CompilerServices.NullableAttribute(1)]
4241
public static Akka.TestKit.Xunit2.Internals.AkkaEqualException ForMismatchedValues(object expected, object actual, string format = null, [System.Runtime.CompilerServices.NullableAttribute(1)] params object[] args) { }
4342
}

0 commit comments

Comments
 (0)