public void CopyTo_should_copy() { var dict = new ThreadSafeDictionary <string, string>(new Dictionary <string, string>()); dict.Add(new KeyValuePair <string, string>("AnyKey", "AnyValue")); dict.Add(new KeyValuePair <string, string>("AnyKey1", "AnyValue1")); dict.Add(new KeyValuePair <string, string>("AnyKey2", "AnyValue2")); var items = new KeyValuePair <string, string> [3]; dict.CopyTo(items, 0); Assert.That(items.Length, Is.EqualTo(3)); }