public void Test13() { byte [] input = { (byte)((SECSItemFormatCodeFunctions.GetNumberFromSECSItemFormatCode(SECSItemFormatCode.I1) << 2) | 0x01), 0x00 }; I1ArraySECSItem secsItem = new I1ArraySECSItem(input, 0, 0); Assert.IsTrue(secsItem.GetValue().Length == 0); }
public void Test01() { byte [] input = { (byte)((SECSItemFormatCodeFunctions.GetNumberFromSECSItemFormatCode(SECSItemFormatCode.I1) << 2) | 0x01), 0x04, 255, 128, 0, 127 }; sbyte [] output = new sbyte[4]; output [0] = -1; output [1] = -128; output [2] = 0; output [3] = 127; I1ArraySECSItem secsItem = new I1ArraySECSItem(input, 0, 0); Assert.AreEqual(secsItem.GetValue(), output); }