public void PrintClassWithDynamicMembersPrintsMembersIfGetDynamicMemberNamesIsImplemented() { // Arrange MockObjectVisitor visitor = CreateObjectVisitor(); dynamic d = new DynamicDictionary(); d.Cycle = d; d.Name = "Foo"; d.Value = null; // Act visitor.Print(d); // Assert Assert.True(visitor.Members.Contains("DynamicDictionary Cycle = Visited")); Assert.True(visitor.Members.Contains("string Name = Foo")); Assert.True(visitor.Members.Contains("Value = null")); }