示例#1
0
 public void Triple_Fours_is_400()
 {
     Assert.Equal(400, Frakle.Score(new[] { 4, 4, 4, 3, 2 }));
 }
示例#2
0
 public void Five_ones_is_1200()
 {
     Assert.Equal(4000, Frakle.Score(new[] { 1, 1, 1, 1, 1 }));
 }
示例#3
0
 public void Four_ones_One_Five_is_1150()
 {
     Assert.Equal(2050, Frakle.Score(new[] { 1, 1, 1, 5, 1 }));
 }
示例#4
0
 public void Four_ones_is_1100()
 {
     Assert.Equal(2000, Frakle.Score(new[] { 1, 1, 1, 1, 4 }));
 }
示例#5
0
 public void Zero_score()
 {
     Assert.Equal(0, Frakle.Score(new[] { 2, 3, 4, 6, 2 }));
 }
示例#6
0
 public void Four_of_a_kind_for_twos_is_400()
 {
     Assert.Equal(400, Frakle.Score(new[] { 2, 2, 2, 2 }));
 }
示例#7
0
 public void Triple_ones_is_1000()
 {
     Assert.Equal(1000, Frakle.Score(new[] { 1, 1, 1, 4, 3 }));
 }
示例#8
0
 public void One_two_is_zero()
 {
     Assert.Equal(0, Frakle.Score(new[] { 2, 3, 3, 4, 4 }));
 }
示例#9
0
 public void Three_two_is_two_hundred()
 {
     Assert.Equal(200, Frakle.Score(new[] { 2, 2, 2, 4, 4 }));
 }
示例#10
0
 public void Four_fives()
 {
     Assert.Equal(1000, Frakle.Score(new[] { 5, 5, 5, 3, 5 }));
 }
示例#11
0
 public void Five_fives()
 {
     Assert.Equal(2000, Frakle.Score(new[] { 5, 5, 5, 5, 5 }));
 }
示例#12
0
 public void Triple_fives()
 {
     Assert.Equal(500, Frakle.Score(new[] { 5, 2, 5, 3, 5 }));
 }
示例#13
0
 public void Two_fives()
 {
     Assert.Equal(100, Frakle.Score(new[] { 5, 5, 3, 4, 2 }));
 }
示例#14
0
 public void Tripple_And_Five()
 {
     Assert.Equal(350, Frakle.Score(new[] { 3, 4, 5, 3, 3 }));
 }
示例#15
0
 public void Triple_Sixes_is_600()
 {
     Assert.Equal(600, Frakle.Score(new[] { 6, 6, 6, 3, 2 }));
 }
示例#16
0
 public void Single_One()
 {
     Assert.Equal(100, Frakle.Score(new[] { 1, 2, 4, 6, 3 }));
 }
示例#17
0
 public void Triple_Two_With_Five_And_One_is_350()
 {
     Assert.Equal(350, Frakle.Score(new[] { 2, 2, 2, 5, 1 }));
 }
示例#18
0
 public void One_one()
 {
     Assert.Equal(100, Frakle.Score(new[] { 1 }));
 }