public Test128Tag createTest128Tag() { Test128Tag tag = new Test128Tag(); tag.Value = 10L; return(tag); }
public void testDecodeLongTag() { IDecoder decoder = newDecoder(); System.IO.MemoryStream stream = new System.IO.MemoryStream(coderTestUtils.createTestLongTagBytes()); TestLongTag val = decoder.decode <TestLongTag>(stream); Assert.AreEqual(val.Value, coderTestUtils.createTestLongTag().Value); stream = new System.IO.MemoryStream(coderTestUtils.createTest128TagBytes()); Test128Tag val2 = decoder.decode <Test128Tag>(stream); Assert.AreEqual(val2.Value, coderTestUtils.createTest128Tag().Value); }