示例#1
0
 public void shouldReturn5StarsWhenLevel7()
 {
     Branch branch = new Branch(7);
     String result = branch.ToString();
     Assert.AreEqual(5, branch.calculateNumberStars(7));
     Assert.AreEqual("* * * * *", result);
 }
示例#2
0
 public void shouldReturn1StartWhen1Line()
 {
     Branch branch = new Branch(1);
     String result = branch.ToString();
     Assert.AreEqual(1, branch.calculateNumberStars(1));
     Assert.AreEqual("*",result);
 }