예제 #1
0
        public virtual void testNullEncode()
        {
            IEncoder encoder = newEncoder();

            Assert.IsNotNull(encoder);
            printEncoded("NullSequence test", encoder, coderTestUtils.createNullSeq());
            checkEncoded(encoder, coderTestUtils.createNullSeq(), coderTestUtils.createNullSeqBytes());
        }
예제 #2
0
        public virtual void testNullDecode()
        {
            IDecoder decoder = newDecoder();

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

            Assert.IsNotNull(seq);
        }