public void TestToString() { PropertyValue one = new PropertyValue("Age", 12); Assert.AreEqual("PropertyValue: name='Age'; value=[12].", one.ToString()); }
/// <summary> /// Modify a <see cref="Oragon.Spring.Objects.PropertyValue"/> object held in this object. Indexed from 0. /// </summary> public void SetPropertyValueAt(PropertyValue pv, int i) { propertyValuesList [i] = pv; }
/// <summary> /// Sets a property value. /// </summary> /// <remarks> /// <p> /// <b>This is the preferred way to update an individual property.</b> /// </p> /// </remarks> /// <param name="pv"> /// The object containing new property value. /// </param> public virtual void SetPropertyValue(PropertyValue pv) { SetPropertyValue(pv.Expression, pv.Value); }
/// <summary> /// Remove the given <see cref="Oragon.Spring.Objects.PropertyValue"/>, if contained. /// </summary> /// <param name="pv"> /// The <see cref="Oragon.Spring.Objects.PropertyValue"/> to remove. /// </param> public void Remove(PropertyValue pv) { propertyValuesList.Remove(pv); }