79383899

Date: 2025-01-24 09:58:32
Score: 1.5
Natty:
Report link

Since the 4.1 version, NUnit is providing a UsingPropertiesComparer() suffix to the Is.EqualTo equality constraint. It will recursively check all the object public properties.

https://docs.nunit.org/articles/nunit/writing-tests/constraints/EqualConstraint.html#comparing-classesstructures

You will even get a specific message when a particular property fails the equality test !

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Glaerferyn