public void UnpacksDefinedClass_WithField() { var expected = new SimpleClassWithField { _a = true }; var toUnpack = new List <byte> { 0xA1, 0x82, 0x5F, 0x61, Markers.True }; //1 fields var actual = Packers.Map.Unpack <SimpleClassWithField>(toUnpack.ToArray()); actual.ShouldBeEquivalentTo(expected); }
public void UnpacksDefinedClass_WithField() { var expected = new SimpleClassWithField {_a = true}; var toUnpack = new List<byte> {0xA1, 0x82, 0x5F, 0x61, (byte) Markers.True}; //1 fields var actual = Packers.Map.Unpack<SimpleClassWithField>(toUnpack.ToArray()); actual.ShouldBeEquivalentTo(expected); }