public void PropertyWithIndefiniteLengthAttribute() { ObjectWithPropertyWithIndefiniteAttribute obj = new ObjectWithPropertyWithIndefiniteAttribute { List = new List <int> { 1, 2, 3 } }; const string hexBuffer = "A1644C6973749F010203FF"; Helper.TestWrite(obj, hexBuffer, null); }
public void PropertyWithIndefiniteLengthAttribute() { ObjectWithPropertyWithIndefiniteAttribute obj = new ObjectWithPropertyWithIndefiniteAttribute { Dictionary = new Dictionary <int, string> { { 1, "foo" }, { 2, "bar" } } }; const string hexBuffer = "A16A44696374696F6E617279BF0163666F6F0263626172FF"; Helper.TestWrite(obj, hexBuffer, null); }
public void PropertyWithIndefiniteLengthAttribute() { ObjectWithPropertyWithIndefiniteAttribute obj = new ObjectWithPropertyWithIndefiniteAttribute { Object = new Object { Id = 12, Name = "foo" } }; const string hexBuffer = "A1664F626A656374BF6249640C644E616D6563666F6FFF"; Helper.TestWrite(obj, hexBuffer, null); }