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