mirror of
https://github.com/modernuo/ModernUO
synced 2026-08-11 22:23:06 -04:00
15 lines
493 B
C#
15 lines
493 B
C#
using System;
|
|
using Server.Text;
|
|
|
|
namespace Server.Tests
|
|
{
|
|
public static class AssertThat
|
|
{
|
|
// TODO: Swap actual and expected to match Assert
|
|
public static void Equal(ReadOnlySpan<byte> actual, ReadOnlySpan<byte> expected) =>
|
|
Xunit.Assert.True(
|
|
expected.SequenceEqual(actual),
|
|
$"Expected does not match actual.\nExpected:\t{expected.ToDelimitedHexString()}\nActual:\t\t{actual.ToDelimitedHexString()}"
|
|
);
|
|
}
|
|
}
|