public void SerializeInt(int value, string expected) { var obj = new ClassWithIntValue { Value = value }; var result = FormUrlEncodedSerializer.ToKVPairs(obj); result.First().Value.Should().Be(expected); }
public void If_field_has_JsonProperty_but_no_name_then_should_the_actual_property_name() { var obj = new ClassWithIntValue { Value = 123 }; var result = FormUrlEncodedSerializer.ToKVPairs(obj); result.First().Key.Should().Be("Value"); }