Beispiel #1
0
 public void SetShouldWorkByteAligned()
 {
     var mockPort = new Mock<ISerialPortWrapper>();
     var tlc = new Tlc5940(mockPort.Object, "COM1", 1);
     tlc.Set(15, 0xFF);
     Assert.AreEqual(0xFF, tlc.TlcGsData[0]);
 }
Beispiel #2
0
 public void SetShouldFailOutOfBounds()
 {
     var mockPort = new Mock<ISerialPortWrapper>();
     var tlc = new Tlc5940(mockPort.Object, "COM1", 1);
     tlc.Set(32, 32);
 }