Exemple #1
0
 public static void WriteDeviceToNonExistingDevice()
 {
     byte[] tmp = { 0, 1, 2 };
     Open(0x30);
     Assert.That(() => i2c.WriteDevice(tmp), Throws.Exception.TypeOf <CommandFailedException>().With.Property("Error").EqualTo(ErrorCode.PI_I2C_WRITE_FAILED));
     Close();
 }