private PredicateClause AppendPredicate(string condition, IClause predicate) { if (!IsEmpty) { _delegate.AppendText($" {condition} "); } _delegate .AppendText("(") .Append(predicate) .AppendText(")"); return(this); }
private void AppendIfNotEmpty(string prefix, IClause append, MutableClause appendTo) { if (append != null && !append.IsEmpty) { appendTo.AppendText(prefix).Append(append).Line(); } }
public void AppendText_TextAppended() { var clause = new MutableClause("some clause"); clause.AppendText(" append this"); Assert.AreEqual("some clause append this", clause.Text); }