private void AddLabeledValueImpl(AssertionFailure.LabeledValue labeledValue) { if (labeledValues == null) { labeledValues = new List <AssertionFailure.LabeledValue>(); } labeledValues.Add(labeledValue); }
/// <summary> /// Adds a labeled value. /// </summary> /// <remarks> /// <para> /// The order in which this method is called determines the order in which this /// value will appear relative to other labeled values. /// </para> /// </remarks> /// <param name="labeledValue">The labeled value.</param> /// <returns>The builder, to allow for fluent method chaining.</returns> public AssertionFailureBuilder AddLabeledValue(AssertionFailure.LabeledValue labeledValue) { AddLabeledValueImpl(labeledValue); return(this); }