Exemplo n.º 1
0
            public void PacksDefinedClassWithMultiplePropertiesCorrectly()
            {
                var toPack = new MultiPropertyClass {A = true, B = false};
                var expected = new List<byte> {0xA2, 0x81, 0x42, (byte) Markers.False, 0x81, 0x41, (byte) Markers.True};


                var actual = Packers.Map.Pack(toPack);
                actual.Should().Equal(expected);
            }
Exemplo n.º 2
0
            public void PacksDefinedClassWithMultiplePropertiesCorrectly()
            {
                var toPack = new MultiPropertyClass {
                    A = true, B = false
                };
                var expected = new List <byte> {
                    0xA2, 0x81, 0x42, Markers.False, 0x81, 0x41, Markers.True
                };


                var actual = Packers.Map.Pack(toPack);

                actual.Should().Equal(expected);
            }