public void test14() { byte[] expectedResult = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.U8) << 2) | 0x03), 0, 0, 0x08, 0, 0, 0, 0, 0, 0, 0, 1 }; U8SECSItem secsItem = new U8SECSItem(1UL, 3); Assert.IsTrue(secsItem.ToRawSECSItem().SequenceEqual(expectedResult)); }
public void test12() { byte[] expectedResult = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.U8) << 2) | 0x02), 0, 0x08, 255, 255, 255, 255, 255, 255, 255, 255 }; U8SECSItem secsItem = new U8SECSItem(UInt64.MaxValue, 2); Assert.IsTrue(secsItem.ToRawSECSItem().SequenceEqual(expectedResult)); }
public void Test12() { byte [] expectedResult = { (byte)((SECSItemFormatCodeFunctions.GetNumberFromSECSItemFormatCode(SECSItemFormatCode.U8) << 2) | 0x03), 0, 0, 0x08, 0, 0, 0, 0, 0, 0, 0, 1 }; U8SECSItem secsItem = new U8SECSItem(0x0000000000000001, SECSItemNumLengthBytes.THREE); Assert.AreEqual(secsItem.ToRawSECSItem(), expectedResult); }
public void test11() { byte[] expectedResult = { (byte)((SECSItemFormatCodeFunctions.getNumberFromSECSItemFormatCode(SECSItemFormatCode.U8) << 2) | 0x01), 0x08, 127, 255, 255, 255, 255, 255, 255, 255 }; U8SECSItem secsItem = new U8SECSItem(9223372036854775807UL); Assert.IsTrue(secsItem.ToRawSECSItem().SequenceEqual(expectedResult)); }
public void Test09() { byte [] expectedResult = { (byte)((SECSItemFormatCodeFunctions.GetNumberFromSECSItemFormatCode(SECSItemFormatCode.U8) << 2) | 0x01), 0x08, 127, 255, 255, 255, 255, 255, 255, 255 }; U8SECSItem secsItem = new U8SECSItem(0x7FFFFFFFFFFFFFFF); Assert.AreEqual(secsItem.ToRawSECSItem(), expectedResult); }