package net.mnb.codeprojects.javase.tenpinbowlingscore;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class BowlingScoreBoardVerifyingScoreCalculationTest {

    @Test
    public void shouldReturn300ForPerfectGame() throws Exception {
        BowlingScoreBoard board = new BowlingScoreBoard(new String[]{"10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10", "10"});

        int finalScore = board.calculateFrameScores();

        assertEquals(300, finalScore);
    }
}

@@ -504,11 +504,862 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void shouldReturn10ForRollScores_1_2_3_4() throws Exception %7B%0A        BowlingScoreBoard board = new BowlingScoreBoard(new String%5B%5D%7B%221%22, %222%22, %223%22, %224%22%7D);%0A%0A        int finalScore = board.calculateFrameScores();%0A%0A        assertEquals(10, finalScore);%0A    %7D%0A%0A    @Test%0A    public void shouldReturn29ForRollScores_9_1_9_1() throws Exception %7B%0A        BowlingScoreBoard board = new BowlingScoreBoard(new String%5B%5D%7B%229%22, %221%22, %229%22, %221%22%7D);%0A%0A        int finalScore = board.calculateFrameScores();%0A%0A        assertEquals(29, finalScore);%0A    %7D%0A%0A    @Test%0A    public void shouldReturn18ForRollScores_1_1_1_1_10_1_1() throws Exception %7B%0A        BowlingScoreBoard board = new BowlingScoreBoard(new String%5B%5D%7B%221%22, %221%22, %221%22, %221%22, %2210%22, %221%22, %221%22%7D);%0A%0A        int finalScore = board.calculateFrameScores();%0A%0A        assertEquals(18, finalScore);%0A    %7D
 %0A%7D%0A

add more tests for calculation