Example #1
0
 public void GetScore_DartLandsInTheBorderBetweenMiddleAndInnerCircles_Return_10()
 {
     Assert.AreEqual(10, Darts.GetScore(0, -1));
 }
Example #2
0
 public void GetScore_DartLandsInTheInnerCircle_Return_10()
 {
     Assert.AreEqual(10, Darts.GetScore(-0.1, -0.1));
 }
Example #3
0
 public void GetScore_DartLandsInTheMiddleCircle_Return_5()
 {
     Assert.AreEqual(5, Darts.GetScore(0.8, -0.8));
 }
Example #4
0
 public void GetScore_DartLandsRightIinTheBorderBetweenOuterAndMiddleCircles_Return_5()
 {
     Assert.AreEqual(5, Darts.GetScore(5, 0));
 }
Example #5
0
 public void GetScore_DartLandsInTheOuterCircle_Return_4()
 {
     Assert.AreEqual(1, Darts.GetScore(4, 4));
 }
Example #6
0
 public void GetScore_DartLandsJustInTheBorderOfTheTarget_Return_1()
 {
     Assert.AreEqual(1, Darts.GetScore(0, 10));
 }
Example #7
0
 public void GetScore_DartLandsOutsideTheTarget_Return_0()
 {
     Assert.AreEqual(0, Darts.GetScore(-9, 9));
 }