Exemple #1
0
        public void Wrapper_WhenMoreLinesAreNeeded_SplitMultipleLines(string input, int num)
        {
            string output = Wrapper.Wrap(input, num);

            Assert.AreEqual("text\ntext\ntext", output);
        }
Exemple #2
0
        public void Wrapper_WhenNumberIsOnWord_SplitAtPreviousSpace2(string input, int num)
        {
            string output = Wrapper.Wrap(input, num);

            Assert.AreEqual("text text\ntext", output);
        }
Exemple #3
0
        public void Wrapper_WhenNumberBiggerOrEqualThenStringLenght_ReturnString(string input, int num)
        {
            string output = Wrapper.Wrap(input, num);

            Assert.AreEqual(input, output);
        }
Exemple #4
0
        public void Wrapper_WhenNumberIsOnWordEdge_SplitStringThere2(string input, int num)
        {
            string output = Wrapper.Wrap(input, num);

            Assert.AreEqual("text text\ntext", output);
        }
Exemple #5
0
        public void Wrapper_WhenEmpty_ReturnEmpty()
        {
            string output = Wrapper.Wrap("", 4);

            Assert.AreEqual(string.Empty, output);
        }