Class AkkaAssertEqualityComparer<T>
Default implementation of IEqualityComparer<T> used by the Akka's xUnit.net equality assertions.
Copy of xUnits code
https://github.com/xunit/xunit/blob/3e6ab94ca231a6d8c86e90d6e724631a0faa33b7/src/xunit.assert/Asserts/Sdk/AssertEqualityComparer.cs
Implements
Inherited Members
Namespace: Akka.TestKit.Xunit2.Internals
Assembly: Akka.TestKit.Xunit2.dll
Syntax
public class AkkaAssertEqualityComparer<T> : IEqualityComparer<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type that is being compared. |
Constructors
| Edit this page View SourceAkkaAssertEqualityComparer(bool, IEqualityComparer?)
Initializes a new instance of the AkkaAssertEqualityComparer<T> class.
Declaration
public AkkaAssertEqualityComparer(bool skipTypeCheck = false, IEqualityComparer? innerComparer = null)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | skipTypeCheck | Set to |
| IEqualityComparer | innerComparer | The inner comparer to be used when the compared objects are enumerable. |
Methods
| Edit this page View SourceEquals(T?, T?)
Determines whether the specified objects are equal.
Declaration
public bool Equals(T? x, T? y)
Parameters
| Type | Name | Description |
|---|---|---|
| T | x | The first object of type |
| T | y | The second object of type |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode(T)
Returns a hash code for the specified object.
Declaration
public int GetHashCode(T obj)
Parameters
| Type | Name | Description |
|---|---|---|
| T | obj | The object for which a hash code is to be returned. |
Returns
| Type | Description |
|---|---|
| int | A hash code for the specified object. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The type of |
Edit this page