예제 #1
0
        public void WriteLow_Test(int pin)
        {
            var bytes = ByteBuilder.WriteLow(pin);

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

            Assert.Equal(pin, pinOut);
            Assert.Equal(Method.WriteLow, method);
        }
예제 #2
0
 public void WriteLow_TestOutOfRange(int hash)
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => ByteBuilder.WriteLow(hash));
 }