def test_get_score__should_return_score_for_ones_TRUE(): roll = create_roll(1, 1, 1, 1, 6) ones = Individual(roll, 'ones') actual = ones.score() assert actual == 4
def test_get_score__should_return_score_for_ones_FALSE(): roll = create_roll(2, 3, 4, 5, 6) ones = Individual(roll, 'ones') actual = ones.score() assert actual == 0
def test_get_score__should_return_score_for_twos_TRUE(): roll = create_roll(2, 2, 2, 2, 1) twos = Individual(roll, 'twos') actual = twos.score() assert actual == 8
def test_get_score__should_return_score_for_twos_FALSE(): roll = create_roll(1, 3, 4, 5, 6) twos = Individual(roll, 'twos') actual = twos.score() assert actual == 0
def test_get_score__should_return_score_for_threes_TRUE(): roll = create_roll(3, 3, 3, 3, 2) threes = Individual(roll, 'threes') actual = threes.score() assert actual == 12
def test_get_score__should_return_score_for_threes_FALSE(): roll = create_roll(1, 2, 4, 5, 6) threes = Individual(roll, 'threes') actual = threes.score() assert actual == 0
def test_get_score__should_return_score_for_fours_FALSE(): roll = create_roll(1, 2, 3, 5, 6) fours = Individual(roll, 'fours') actual = fours.score() assert actual == 0
def test_get_score__should_return_score_for_fours_TRUE(): roll = create_roll(4, 4, 4, 4, 3) fours = Individual(roll, 'fours') actual = fours.score() assert actual == 16
def test_get_score__should_return_score_for_fives_FALSE(): roll = create_roll(1, 2, 3, 4, 6) fives = Individual(roll, 'fives') actual = fives.score() assert actual == 0
def test_get_score__should_return_score_for_fives_TRUE(): roll = create_roll(5, 5, 5, 5, 4) fives = Individual(roll, 'fives') actual = fives.score() assert actual == 20
def test_get_score__should_return_score_for_sixes_TRUE(): roll = create_roll(6, 6, 6, 6, 5) sixes = Individual(roll, 'sixes') actual = sixes.score() assert actual == 24