Skip to content

Commit

Permalink
fix(tests): assert equality over the whole object for SourceGenerated…
Browse files Browse the repository at this point in the history
… cases
  • Loading branch information
AndreaCuneo committed Dec 12, 2024
1 parent b526442 commit 2ca2fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MessagePack.NodaTime.Tests/SourceGeneratedContractTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void Roundtrip()
var bin = MessagePackSerializer.Serialize(o);
var res = MessagePackSerializer.Deserialize<MyClass>(bin);

Assert.Equal(o.LocalDateTime, res.LocalDateTime); // in DateTime format due to 'abc' being DateTime object
Assert.Equal(o, res);
}
}
}

0 comments on commit 2ca2fbc

Please sign in to comment.