Ejemplo n.º 1
0
 public void MyTest(int n, string s, string expected)
 {
     Assert.AreEqual(expected, StringRepeat.RepeatStr(n, s));
 }
Ejemplo n.º 2
0
 public void MyTest()
 {
     Assert.AreEqual("***", StringRepeat.repeatStr(3, "*"));
     Assert.AreEqual("#####", StringRepeat.repeatStr(5, "#"));
     Assert.AreEqual("ha ha ", StringRepeat.repeatStr(2, "ha "));
 }