public void testDecodeTaggedSetInSet() { IDecoder decoder = newDecoder(); Assert.IsNotNull(decoder); System.IO.MemoryStream stream = new System.IO.MemoryStream(coderTestUtils.createTaggedSetInSetBytes()); TestTaggedSetInSet tset = decoder.decode <TestTaggedSetInSet>(stream); stream = new System.IO.MemoryStream(coderTestUtils.createSet7Bytes()); Set7 set7 = decoder.decode <Set7>(stream); }
public void testEncodeTaggedSetInSet() { IEncoder encoder = newEncoder(); Assert.IsNotNull(encoder); TestTaggedSetInSet taggedSet = coderTestUtils.createTaggedSetInSet(); printEncoded("TaggedSetInSet", encoder, taggedSet); checkEncoded(encoder, coderTestUtils.createTaggedSetInSet(), coderTestUtils.createTaggedSetInSetBytes()); Set7 set7 = coderTestUtils.createSet7(); printEncoded("Set7", encoder, set7); checkEncoded(encoder, coderTestUtils.createSet7(), coderTestUtils.createSet7Bytes()); }