예제 #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);
        }