public static void Length_Set_InvalidValue_ThrowsArgumentOutOfRangeException()
{
var builder = new StringBuilder(10, 10);
builder.Append("Hello");
Assert.Throws<ArgumentOutOfRangeException>("value", () => builder.Length = -1); // Value < 0
Assert.Throws<ArgumentOutOfRangeException>("value", () => builder.Length = builder.MaxCapacity + 1); // Value > builder.MaxCapacity
}