Skip to content

Commit

Permalink
Remove support for serialization from "AkkaEqualException"
Browse files Browse the repository at this point in the history
  • Loading branch information
milang committed Jan 8, 2025
1 parent 36547f0 commit f213199
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 45 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//-----------------------------------------------------------------------

using System;
using System.Runtime.Serialization;
using Xunit.Sdk;

#nullable enable
Expand All @@ -15,7 +14,6 @@ namespace Akka.TestKit.Xunit2.Internals
/// <summary>
/// TBD
/// </summary>
[Serializable]
public class AkkaEqualException : XunitException
{
// Length of "Expected: " and "Actual: "
Expand Down Expand Up @@ -53,14 +51,6 @@ public static AkkaEqualException ForMismatchedValues(
public AkkaEqualException(string format = "", params object[] args)
: base(BuildAssertionMessage(format, args)) { }

/// <summary>
/// Initializes a new instance of the <see cref="AkkaEqualException"/> class.
/// </summary>
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param>
protected AkkaEqualException(SerializationInfo info, StreamingContext context)
: base(info.GetString("Message")) { }

/// <summary>
/// Builds assertion message by applying specified arguments to the format string.
/// When no arguments are specified, format string is returned as-is.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace Akka.TestKit.Xunit2.Internals
public class AkkaEqualException : Xunit.Sdk.XunitException
{
public AkkaEqualException(string format = "", params object[] args) { }
protected AkkaEqualException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
[return: System.Runtime.CompilerServices.NullableAttribute(1)]
public static Akka.TestKit.Xunit2.Internals.AkkaEqualException ForMismatchedValues(object expected, object actual, string format = null, [System.Runtime.CompilerServices.NullableAttribute(1)] params object[] args) { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace Akka.TestKit.Xunit2.Internals
public class AkkaEqualException : Xunit.Sdk.XunitException
{
public AkkaEqualException(string format = "", params object[] args) { }
protected AkkaEqualException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
[return: System.Runtime.CompilerServices.NullableAttribute(1)]
public static Akka.TestKit.Xunit2.Internals.AkkaEqualException ForMismatchedValues(object expected, object actual, string format = null, [System.Runtime.CompilerServices.NullableAttribute(1)] params object[] args) { }
}
Expand Down

0 comments on commit f213199

Please sign in to comment.