Exemplo n.º 1
0
        public void WriteHigh_Test(int pin)
        {
            var bytes = ByteBuilder.WriteHigh(pin);

            var method = ByteBuilder.Encrypt(bytes[0], out int pinOut);

            Assert.Equal(pin, pinOut);
            Assert.Equal(Method.WriteHigh, method);
        }
Exemplo n.º 2
0
        public void Hello_Test()
        {
            var bytes = ByteBuilder.Hello();

            var method = ByteBuilder.Encrypt(bytes[0], out int x);

            Assert.Equal(0, x);
            Assert.Equal(Method.Hello, method);
        }
Exemplo n.º 3
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);
        }