System.Text.Tests.StringBuilderTests.Ctor_String_Int C# (CSharp) Method

Ctor_String_Int() private method

private Ctor_String_Int ( string value ) : void
value string
return void
        public static void Ctor_String_Int(string value)
        {
            var builder = new StringBuilder(value, 42);

            string expected = value ?? "";
            Assert.Equal(expected, builder.ToString());
            Assert.Equal(expected.Length, builder.Length);

            Assert.True(builder.Capacity >= 42);
        }
StringBuilderTests