コード例 #1
0
        public virtual void testSequenceWithEnum()
        {
            IEncoder encoder = newEncoder();

            Assert.IsNotNull(encoder);
            printEncoded("Sequence Enum test", encoder, coderTestUtils.createSequenceWithEnum());
            checkEncoded(encoder, coderTestUtils.createSequenceWithEnum(), coderTestUtils.createSequenceWithEnumBytes());
        }
コード例 #2
0
        public virtual void testSequenceWithEnum()
        {
            IDecoder decoder = newDecoder();

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

            Assert.IsNotNull(seq);
        }