예제 #1
0
        /// <summary>
        /// Adds an object to a list of objects associated with this key.
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        public void AddToList(string key, object value)
        {
            Dictionary <string, object> dictionary = GetDictionary();
            BaseList <object>           values;

            if (dictionary.ContainsKey(key))
            {
                values = (BaseList <object>)dictionary[key];
            }
            values = new BaseList <object>();
            dictionary.Add(key, values);


            values.Add(value);
        }
 public SoftAssertChain()
 {
     failures = new BaseList <Exception>();
 }