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