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); }
public void WriteLow_TestOutOfRange(int hash) { Assert.Throws <ArgumentOutOfRangeException>(() => ByteBuilder.WriteLow(hash)); }