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

Insert_Bool() private method

private Insert_Bool ( string original, int index, bool value, string expected ) : void
original string
index int
value bool
expected string
return void
        public static void Insert_Bool(string original, int index, bool value, string expected)
        {
            var builder = new StringBuilder(original);
            builder.Insert(index, value);
            Assert.Equal(expected, builder.ToString());
        }
StringBuilderTests