public void Compound5() { var customer = new Customer(); var date = new DateTime(2007, 4, 1); initiallyEmptyBuilder.Append(customer).Separator(" - ").Append(null); AssertTitleIs("Harry Smith", initiallyEmptyBuilder); }
public void Compound6() { var customer = new Customer(); initiallyEmptyBuilder.Append(customer).Separator(" - ").Append(customer).Separator("!").Append(null); AssertTitleIs("Harry Smith - Harry Smith", initiallyEmptyBuilder); }
public void Compound3() { var customer = new Customer(); var date = new DateTime(2007, 4, 1); initiallyEmptyBuilder.Append(customer).Separator(" - ").Concat(date).Format("d"); AssertTitleIs("Harry Smith - 01/04/2007", initiallyEmptyBuilder); }