public virtual TestIA5 createTestIA5() { TestIA5 value_Renamed = new TestIA5(); value_Renamed.Value = "Hello"; 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.createTestIA5Bytes())); TestIA5 valIA5 = decoder.decode <TestIA5>(stream); Assert.IsNotNull(valIA5); Assert.AreEqual(val.Value, coderTestUtils.createTestIA5().Value); stream = new System.IO.MemoryStream((coderTestUtils.createTestOCTBytes())); TestOCT valOct = decoder.decode <TestOCT>(stream); Assert.IsNotNull(valOct); ByteTools.checkBuffers(valOct.Value, coderTestUtils.createTestOCT().Value); }