Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Ping_TestOutOfRange(int hash)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => ByteBuilder.Ping(hash));
 }