public void CloningAnonymousTypeObject() { var d = new {Property1 = "Property1", Property2 = 10}; var dCloned = d.ShallowClone(); d.Property1.Should().Be(dCloned.Property1); d.Property2.Should().Be(dCloned.Property2); }