Ejemplo n.º 1
0
        public void ReplaceAllValues()
        {
            SPSKeyValueList keyValues = new SPSKeyValueList();

            keyValues.Add(new SPSKeyValuePair("Key", "Value"));
            keyValues.Add(new SPSKeyValuePair("Key", "Value"));

            keyValues.ReplaceAllValues("Key", "NewValue");

            Assert.IsTrue(keyValues[0].Value == "NewValue");
            Assert.IsTrue(keyValues[1].Value == "NewValue");
        }