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

            Assert.IsNotNull(encoder);
            printEncoded("Sequence Of String", encoder, coderTestUtils.createStringArray());
            checkEncoded(encoder, coderTestUtils.createStringArray(), coderTestUtils.createStringArrayBytes());
        }
コード例 #2
0
        public virtual void testDecodeStringArray()
        {
            IDecoder decoder = newDecoder();

            System.IO.MemoryStream stream = new System.IO.MemoryStream((coderTestUtils.createStringArrayBytes()));
            StringArray            val    = decoder.decode <StringArray>(stream);

            Assert.IsNotNull(val);
            checkArray(val.Value, coderTestUtils.createStringArray().Value);
        }