public void testEncodeCSEnum() { IEncoder encoder = newEncoder(); Assert.IsNotNull(encoder); printEncoded("EncodeCSEnum: ", encoder, coderTestUtils.createCSEnum()); checkEncoded(encoder, coderTestUtils.createCSEnum(), coderTestUtils.createCSEnumBytes()); }
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()); }