Exemplo n.º 1
0
        public virtual void testSequenceWithNull()
        {
            IEncoder encoder = newEncoder();

            Assert.IsNotNull(encoder);
            printEncoded("SequenceWithNull test", encoder, coderTestUtils.createSeqWithNull());
            checkEncoded(encoder, coderTestUtils.createSeqWithNull(), coderTestUtils.createSeqWithNullBytes());
        }
Exemplo n.º 2
0
        public virtual void testSequenceWithNullDecode()
        {
            IDecoder decoder = newDecoder();

            System.IO.MemoryStream stream = new System.IO.MemoryStream((coderTestUtils.createSeqWithNullBytes()));
            SequenceWithNull       seq    = decoder.decode <SequenceWithNull>(stream);

            Assert.IsNotNull(seq);
        }