Skip to content

Commit

Permalink
Add PrimitiveObjectResolver test for deserializing strings
Browse files Browse the repository at this point in the history
Repro for #1574
  • Loading branch information
AArnott committed Mar 14, 2023
1 parent 92f230b commit 0e387c5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public void CompressibleIntegersRetainTypeInfo<T>(T value)
Assert.Equal(value, result);
}

[Fact]
public void StringType()
{
byte[] msgpack = MessagePackSerializer.Serialize<object>("message", PrimitiveObjectResolver.Options);
string result = (string)MessagePackSerializer.Deserialize<object>(msgpack, PrimitiveObjectResolver.Options);
}

[Fact]
public void IL2CPPHint()
{
Expand Down

0 comments on commit 0e387c5

Please sign in to comment.