public void TestAddMessage_2()
        {
            StringBuilder        stringBuilder        = new StringBuilder(14, 14);
            ConsoleStringBuilder consoleStringBuilder = new ConsoleStringBuilder(stringBuilder);

            consoleStringBuilder.Write("Test1 Test2 Test3 Test4 Test5");
            Assert.AreEqual(ConsoleStringBuilder.MessageTooLongErrorString + Environment.NewLine, consoleStringBuilder.GetText());
        }
        public void TestAddMessage_1()
        {
            StringBuilder stringBuilder = new StringBuilder(18, 18);

            stringBuilder.Append("Test1");
            ConsoleStringBuilder consoleStringBuilder = new ConsoleStringBuilder(stringBuilder);

            Assert.AreEqual("Test1" + Environment.NewLine, consoleStringBuilder.GetText());

            consoleStringBuilder.Write("Test2");
            Assert.AreEqual("Test1" + Environment.NewLine + "Test2" + Environment.NewLine, consoleStringBuilder.GetText());

            consoleStringBuilder.Write("Test3");
            Assert.AreEqual("Test2" + Environment.NewLine + "Test3" + Environment.NewLine, consoleStringBuilder.GetText());

            consoleStringBuilder.Write("Test4");
            Assert.AreEqual("Test3" + Environment.NewLine + "Test4" + Environment.NewLine, consoleStringBuilder.GetText());
        }