Пример #1
0
        public void testEncodeCSEnum()
        {
            IEncoder encoder = newEncoder();

            Assert.NotNull(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.Equals(val, coderTestUtils.createCSEnum());
        }