public virtual void testEnum() { IEncoder encoder = newEncoder(); Assert.IsNotNull(encoder); printEncoded("Enum test", encoder, coderTestUtils.createEnum()); checkEncoded(encoder, coderTestUtils.createEnum(), coderTestUtils.createEnumBytes()); }
public virtual void testEnum() { IDecoder decoder = newDecoder(); System.IO.MemoryStream stream = new System.IO.MemoryStream((coderTestUtils.createEnumBytes())); ContentSchema enm = decoder.decode <ContentSchema>(stream); Assert.IsNotNull(enm); checkContentSchema(enm, coderTestUtils.createEnum()); }