Esempio n. 1
0
        public void Indent1()
        {
            _sut.AppendLine("{");

            using (_sut.Indent())
            {
                _sut.Append("x").Append(" = ").AppendLine("1;");
            }

            _sut.Append("}");

            Console.WriteLine("----------");
            Console.WriteLine(_sut.ToString());
            Console.WriteLine("----------");
            _sut.AsStringBuilder().ToString().ShouldBe(@"{
    x = 1;
}");
        }