public virtual TestOCT createTestOCT() { TestOCT value_Renamed = new TestOCT(); value_Renamed.Value = new byte[] { (byte)(0x01), (byte)(0x02), (byte)(0xFF), (byte)(0x03), (byte)(0x04) }; return(value_Renamed); }
public virtual void testDecodeString() { IDecoder decoder = newDecoder(); System.IO.MemoryStream stream = new System.IO.MemoryStream((coderTestUtils.createTestPRNBytes())); TestPRN val = decoder.decode <TestPRN>(stream); Assert.IsNotNull(val); Assert.AreEqual(val.Value, coderTestUtils.createTestPRN().Value); stream = new System.IO.MemoryStream((coderTestUtils.createTestOCTBytes())); TestOCT valOct = decoder.decode <TestOCT>(stream); Assert.IsNotNull(valOct); ByteTools.checkBuffers(valOct.Value, coderTestUtils.createTestOCT().Value); }