Exemplo n.º 1
0
        public void test5()
        {
            string s = CSharpMethods.Repeaty("", true, 0);

            Assert.AreEqual("**", s);
        }
Exemplo n.º 2
0
        public void test4()
        {
            string s = CSharpMethods.Repeaty("CAT", true, 1);

            Assert.AreEqual("*CAT*", s);
        }
Exemplo n.º 3
0
        public void test2()
        {
            string s = CSharpMethods.Repeaty("Abcde", false, 4);

            Assert.AreEqual("AbcdeAbcdeAbcdeAbcde", s);
        }
Exemplo n.º 4
0
        public void test3()
        {
            string s = CSharpMethods.Repeaty("Abcde", true, 4);

            Assert.AreEqual("*AbcdeAbcdeAbcdeAbcde*", s);
        }
Exemplo n.º 5
0
        public void test1()
        {
            string s = CSharpMethods.Repeaty("Xyz", false, 2);

            Assert.AreEqual("XyzXyz", s);
        }