public void FormatPartial() { var builder = new StringBuilder("x"); var offset = Offset.FromHoursAndMinutes(20, 30); SimpleOffsetPattern.FormatPartial(offset, builder); Assert.AreEqual("x20:30", builder.ToString()); }
public void FormatPartial(Offset value, StringBuilder builder) { if (value == Offset.Zero) { builder.Append("Z"); } else { fullPattern.FormatPartial(value, builder); } }