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