Example #1
0
        /// <seealso cref="Encoder.encode(T,OutputStream)">
        /// </seealso>
        public virtual void  testITUEncode()
        {
            IEncoder encoder = newEncoder();

            Assert.NotNull(encoder);
            printEncoded("ITUSequence test", encoder, coderTestUtils.createITUSeq());
            checkEncoded(encoder, coderTestUtils.createITUSeq(), coderTestUtils.createITUSeqBytes());
        }
Example #2
0
        public virtual void  testITUDeDecode()
        {
            IDecoder decoder = newDecoder();

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

            checkITUSeq(seq, coderTestUtils.createITUSeq());
        }