Esempio n. 1
0
        static void Step1()
        {
            String out8518 = "a+\nb\nc\nd\ne\nf\ng\nh\n\n" +
                             "a\nb\nc\nd+\ne\nf\ng\nh\n\n" +
                             "a\nb\nc\nd\ne\nf\ng\nh+\n\n" +
                             "a\nb\nc\nd\ne\nf\ng\nh\n\n";
            StringBuilder sb = new StringBuilder();
            StringBuilder r1 = Lab05.task8518(sb, "a");

            r1.Append("\n");
            Lab05.task8518(sb, "d").Append("\n");
            Lab05.task8518(sb, "h").Append("\n");
            Lab05.task8518(sb, "i").Append("\n");
            if (out8518.Equals(sb.ToString()))
            {
                Console.WriteLine("Задача решена верно");
            }
            else
            {
                sb.Insert(0, "Неверно. Результат:\n");
                Console.WriteLine(sb.ToString());
            }
        }