public void inspecting_a_nested_type_returns_expected_result() { var customer = new Customer { Name = "Acme, Inc." }; customer.AddOrder(new Order { Product = "Toothbrush", Quantity = 1 }); customer.AddOrder(new Order { Product = "Soap on a Roap", Quantity = 2 }); customer.ShipTo.SendTo = "123 E Main St"; var result = customer.Inspect(); StringAssert.IsMatch(@"Customer: (\d+), Name: Acme, Inc., NumberOfOrders: 2, Orders: \[(.*), (.*)\], ShipTo: (.*)", result); }