public void ValueCollection(JaggedDictionary<int, string> sut, KeyValuePair<JaggedIndex4<int>, string>[] values) { foreach (var kvp in values) sut[kvp.Key] = kvp.Value; var debugView = new JaggedDictionaryValueCollectionDebugView<int, string>(sut.Values); var items = debugView.Items; Assert.Equal(values.Distinct().Count(), items.Length); }