public void TestCopyTo_Explicit() { var instance = new { Name = "Bob", Age = 23 }; ICollection <KeyValuePair <string, object> > collection = new PropertyDictionary(instance); KeyValuePair <string, object>[] array = new KeyValuePair <string, object> [collection.Count]; int arrayIndex = 0; collection.CopyTo(array, arrayIndex); Assert.IsTrue(array.Contains(new KeyValuePair <string, object>("Name", "Bob")), "The name property was not found."); Assert.IsTrue(array.Contains(new KeyValuePair <string, object>("Age", 23)), "The age property was not found."); }