using System;
using FluentAssertions;
public class Obj
{
public string Str
get;
set;
}
public Obj Nested
public class Program
public static void Main()
var first = new Obj()
Nested = null, Str = "test"
;
var second = new Obj()
Nested = first, Str = "test"
first.ShouldBeEquivalentTo(second, o => o.ExcludingNestedObjects());