Пример #1
0
        public void Test_ZeilenInText_Test1()
        {
            var cls = new Umbrecher();

            var result = cls.ZeilenInText(new[] { "Ster", "nlei", "n", "soso" });

            Assert.AreEqual("Ster\nnlei\nn\nsoso", result);
        }
Пример #2
0
        public void Test_WortZusammenfügen_Test2()
        {
            var cls = new Umbrecher();

            var result = cls.WorteZusammenfügen(new[] { "A,", "BB", "CCC." }, 5);

            Assert.AreEqual("A, BB\nCCC.", result);
        }
Пример #3
0
        public void Test_WorteInZeilen_Test2()
        {
            var cls = new Umbrecher();

            var result = cls.WorteInZeilen(new[] { "Ster", "nlei", "n", "soso" }, 4);

            CollectionAssert.AreEqual(new[] { "Ster", "nlei", "n", "soso" }, result.ToArray());
        }
Пример #4
0
        public void Test_WorteNormieren_Test1()
        {
            var cls = new Umbrecher();

            var result = cls.WorteNormieren(new[] { "Sternlein" }, 4);

            CollectionAssert.AreEqual(new[] { "Ster", "nlei", "n" }, result.ToArray());
        }
Пример #5
0
        public void Test_WortLesen_Test1()
        {
            var cls = new Umbrecher();

            var result = cls.WorteLesen("Wort1, Wort2 \nWort3.");

            CollectionAssert.AreEqual(new [] { "Wort1,", "Wort2", "Wort3." }, result.ToArray());
        }
Пример #6
0
        public void Test_Umbrechen_14()
        {
            string text   = "Es blaubt die Nacht,\ndie Sternlein blinken,\nSchneeflöcklein leis hernieder sinken.";
            var    cls    = new Umbrecher();
            var    result = cls.Umbrechen(text, 14);

            Assert.AreEqual("Es blaubt die\nNacht, die\nSternlein\nblinken,\nSchneeflöcklei\nn leis\nhernieder\nsinken.", result);
        }
Пример #7
0
        public void Test_WortZusammenfügen_Test3()
        {
            var cls = new Umbrecher();

            var result = cls.WorteZusammenfügen(new[] { "Sternlein", "so" }, 4);

            Assert.AreEqual("Ster\nnlei\nn so", result);
        }