public void EnumeratingMetadataValuesReturnsCorrectResults() { // Given MetadataDictionary initialMetadata = new MetadataDictionary { ["A"] = new SimpleMetadataValue {Value = "a"}, ["B"] = new SimpleMetadataValue {Value = "b"}, ["C"] = new SimpleMetadataValue {Value = "c"} }; MetadataStack metadata = new MetadataStack(initialMetadata); // When object[] values = metadata.Select(x => x.Value).ToArray(); // Then CollectionAssert.AreEquivalent(new[] {"a", "b", "c"}, values); }