public void Ping_Test(int hash) { var bytes = ByteBuilder.Ping(hash); var method = ByteBuilder.Encrypt(bytes[0], out int hashOut); Assert.Equal(hash, hashOut); Assert.Equal(Method.Ping, method); }
public void Ping_TestOutOfRange(int hash) { Assert.Throws <ArgumentOutOfRangeException>(() => ByteBuilder.Ping(hash)); }