- [X] Fixes bad serial calculations - [X] Tightens HexStrings Bumps release version Updates documentation
15 lines
493 B
C#
15 lines
493 B
C#
using System;
|
|
using System.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()}"
|
|
);
|
|
}
|
|
}
|