I am using XUnit framework to test my C# code.
Is there any assert method available in this framework which does the object comparison? My intention is to check for equa
FluentAssertions library has some pretty powerful comparison logic inside.
myObject.ShouldBeEquivalentTo(new { SomeProperty = "abc", SomeOtherProperty = 23 });
You can even use this to assert on part of "myObject". However, it might not help you with the private fields.