public void test08() { Int64 expectedOutput = 9223372036854775807L; I8SECSItem secsItem = new I8SECSItem(expectedOutput); Assert.IsTrue(secsItem.getValue() == expectedOutput); }
public void test07() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.I8) << 2) | 0x01), 0x08, 127, 255, 255, 255, 255, 255, 255, 255 }; Int64 expectedOutput = 9223372036854775807L; I8SECSItem secsItem = new I8SECSItem(input, 0); Assert.IsTrue(secsItem.getValue() == expectedOutput); }
public void test06() { byte[] input = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.I8) << 2) | 0x01), 0x08, 0, 0, 0, 0, 0, 0, 0, 1 }; Int64 expectedOutput = 1; I8SECSItem secsItem = new I8SECSItem(input, 0); Assert.IsTrue(secsItem.getValue() == expectedOutput); }