Skip to content

Commit d255c5c

Browse files
committed
Add failing testcase deserializing reference ids
1 parent d6b70b9 commit d255c5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/Tests/Serializer/SerializerTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ public void CanDeserializeDataWithoutUnderscores() {
8888

8989
string newJson = JsonConvert.SerializeObject(m, settings);
9090
}
91+
92+
[Fact]
93+
public void WillDeserializeReferenceIds() {
94+
IJsonSerializer serializer = GetSerializer();
95+
var ev = (Event)serializer.Deserialize(@"{""reference_id"": ""123"" }", typeof(Event));
96+
Assert.Equal("123", ev.ReferenceId);
97+
}
9198
}
9299

93100
public class Blah {

0 commit comments

Comments
 (0)