public void EnumAsStringTest() { var expected = new BaseTypeEnumAsStringClass {Field = BaseTypeEnumValues.B}; var actual = Roundtrip(expected, new byte[] {(byte) 'B', 0x0}); Assert.AreEqual(expected.Field, actual.Field); }
public void EnumAsStringTest() { var expected = new BaseTypeEnumAsStringClass { Field = BaseTypeEnumValues.B }; var actual = Roundtrip(expected, new byte[] { (byte)'B', 0x0 }); Assert.Equal(expected.Field, actual.Field); }