Skip to content

Commit

Permalink
Update JsonSerializationTests.cs
Browse files Browse the repository at this point in the history
Make use of reference equality explicit since new NUnit 4 properties comparer breaks this otherwise
  • Loading branch information
jas88 committed Dec 4, 2023
1 parent 8349cd3 commit d780471
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void TestSerialization_Catalogue()
var mySerializeableAfter = (MySerializeableTestClass)JsonConvert.DeserializeObject(asString,
typeof(MySerializeableTestClass), new JsonConverter[] { dbConverter, lazyConverter });

Assert.That(mySerializeableAfter, Is.Not.EqualTo(mySerializeable));
Assert.That(mySerializeableAfter, Is.Not.SameAs(mySerializeable));
Assert.That(mySerializeableAfter.SelectedCatalogue, Is.EqualTo(mySerializeable.SelectedCatalogue));
Assert.Multiple(() =>
{
Expand Down

0 comments on commit d780471

Please sign in to comment.