示例#1
0
        public void DuplexBasicDictionaryToProperties()
        {
            Dictionary <string, object> srcDictionary = PrepareBasicDictionary();

            PropertyValueCollection pvs = srcDictionary.ToProperties();

            Dictionary <string, object> clonedDictionary = new Dictionary <string, object>();

            srcDictionary.ForEach(kp => clonedDictionary.Add(kp.Key, kp.Value));

            pvs.FillDictionary(clonedDictionary);

            AssertBasicDictionaryItems(srcDictionary, clonedDictionary);
        }