Example #1
0
        public void NamedEnumTest2()
        {
            var expected = new NamedEnumClass {
                Field = NamedEnumValues.C
            };
            var actual = Roundtrip(expected, System.Text.Encoding.UTF8.GetBytes("C\0"));

            Assert.Equal(expected.Field, actual.Field);
        }
Example #2
0
        public void NamedEnumTest()
        {
            var expected = new NamedEnumClass {
                Field = NamedEnumValues.B
            };
            var actual = Roundtrip(expected, System.Text.Encoding.UTF8.GetBytes("Bravo" + char.MinValue));

            Assert.Equal(expected.Field, actual.Field);
        }