示例#1
0
        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);
        }
示例#2
0
        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);
        }