using System;
using Xunit.Sdk;
// ReSharper disable once CheckNamespace
namespace Xunit;
public partial class Assert
{
///
/// Verifies that two spans are equal, using a default comparer.
///
/// The type of the objects to be compared
/// The expected value
/// The value to be compared against
/// Thrown when the objects are not equal
public static void Equal(ReadOnlySpan expected, ReadOnlySpan actual) where T : unmanaged, IEquatable
{
if (!expected.SequenceEqual(actual))
throw new EqualException(expected.ToArray(), actual.ToArray());
}
}