public void Test03() { byte value = 0; U1SECSItem secsItem = new U1SECSItem(value); Assert.IsTrue(secsItem.GetValue() == 0); }
public void Test04() { byte value = 127; U1SECSItem secsItem = new U1SECSItem(value); Assert.IsTrue(secsItem.GetValue() == 127); }
public void Test01() { byte value = 255; U1SECSItem secsItem = new U1SECSItem(value); Assert.IsTrue(secsItem.GetValue() == 255); }
public void Test08() { byte [] input = { (byte)((SECSItemFormatCodeFunctions.GetNumberFromSECSItemFormatCode(SECSItemFormatCode.U1) << 2) | 0x01), 0x01, 127 }; short expectedOutput = 127; U1SECSItem secsItem = new U1SECSItem(input, 0); Assert.IsTrue(secsItem.GetValue() == expectedOutput); }