Ejemplo n.º 1
0
        public virtual void  testEnum()
        {
            IEncoder encoder = newEncoder();

            Assert.NotNull(encoder);
            printEncoded("Enum test", encoder, coderTestUtils.createEnum());
            checkEncoded(encoder, coderTestUtils.createEnum(), coderTestUtils.createEnumBytes());
        }
Ejemplo n.º 2
0
        public virtual void  testEnum()
        {
            IDecoder decoder = newDecoder();

            System.IO.MemoryStream stream = new System.IO.MemoryStream((coderTestUtils.createEnumBytes()));
            ContentSchema          enm    = decoder.decode <ContentSchema>(stream);

            Assert.NotNull(enm);
            checkContentSchema(enm, coderTestUtils.createEnum());
        }