Given if then specflow

SpecFlowOSS / SpecFlow Examples

#language: deFunctionality: points calculationAs a player I want the system to calculate my score So that I know how good I amScenario: No pointsLet there be a new bowling gameWhen all of my bullets land in the side gullyThen my score should be 0Scenario: beginner gameLet there be a new bowling gameIf I throw 2 and 7And I throw 3 and 4And I throw 1 and 1 8 timesThen my score should be 32 Scenario: Another beginner gameA new bowling game is givenIf I throw the following series: 2,7,3,4,1,1,5,1,1,1,1,1,1,1,1,1,1,1,1,5,1Then my score should be 40Scenario: Strikes onlyLet there be a new bowling gameIf I just throw strikesThen my score should be 300Scenario: a single spareA new bowling game is givenIf I throw the following series: 3,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1Then my score should be 29 Scenario: only sparesLet there be a new bowling gameIf I throw 1 and 9 10 timesAnd I throw 1Then my score should be 110