public void Test2_True() { var test = new Dpt1Translator(); var value = test.FromDataPoint(new byte[] { 255 }); Assert.True((bool)value); }
public void Test_False() { var test = new Dpt1Translator(); var value = test.FromDataPoint(new byte[] { 0 }); Assert.False((bool)value); }
public void Test_FromDataPointException() { var test = new Dpt1Translator(); Assert.Throws <FromDataPointException>(() => test.FromDataPoint(new byte[] { 255, 12 })); }