public void CheckPing_ListContainsNumbers_True() { List <string> numbers = PingPongs.GetRange(6); for (int i = 1; i <= numbers.Count; i++) { Assert.AreEqual(i.ToString(), numbers[i - 1]); } }
public void CheckPing_NumberDivisibleByThreeAndFive_False() { Assert.AreEqual(false, PingPongs.CheckPingPong(31)); Assert.AreEqual(false, PingPongs.CheckPingPong(14)); }
public void CheckPing_NumberDivisibleByThreeAndFive_True() { Assert.AreEqual(true, PingPongs.CheckPingPong(30)); Assert.AreEqual(true, PingPongs.CheckPingPong(15)); }
public void CheckPing_NumberDivisibleByThree_False() { Assert.AreEqual(false, PingPongs.CheckPing(8)); Assert.AreEqual(false, PingPongs.CheckPing(17)); }
public void CheckPing_NumberDivisibleByThree_True() { Assert.AreEqual(true, PingPongs.CheckPing(9)); Assert.AreEqual(true, PingPongs.CheckPing(12)); }
public ActionResult Result() { List <string> output = PingPongs.GetPingPong(PingPongs.GetRange(Int32.Parse(Request.Form["range"]))); return(View("Index", output)); }