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

            Assert.IsNotNull(encoder);
            printEncoded("EncodeCSEnum: ", encoder, coderTestUtils.createCSEnum());
            checkEncoded(encoder, coderTestUtils.createCSEnum(), coderTestUtils.createCSEnumBytes());
        }
예제 #2
0
        public void testDecodeCSEnum()
        {
            IDecoder decoder = newDecoder();

            System.IO.MemoryStream        stream = new System.IO.MemoryStream(coderTestUtils.createCSEnumBytes());
            CoderTestUtilities.TestCSEnum val    = decoder.decode <CoderTestUtilities.TestCSEnum>(stream);
            Assert.AreEqual(val, coderTestUtils.createCSEnum());
        }