Last active
August 29, 2015 14:05
-
-
Save JogoShugh/6f06ae0570599f4f7de0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class when_I_roll_a_game_with_even_a_single_strike_and_try_to_roll_past_ten_frames : concerns<BowlingGame> | |
{ | |
[Specification] | |
public void then_I_get_an_exception() | |
{ | |
Assert.Throws<ApplicationException>(() => | |
{ | |
var game = build_up(); | |
game.Roll(10); | |
9.times(() => | |
{ | |
game.Roll(9); | |
game.Roll(1); | |
}); | |
game.Roll(1); // Spare bonus, yay | |
game.Roll(0); // Ha! Should fail! | |
}); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class when_I_roll_an_even_more_perfecter_game : concerns<BowlingGame> | |
{ | |
[Specification] | |
public void then_I_get_an_exception() | |
{ | |
Assert.Throws<ApplicationException>(() => | |
{ | |
var game = build_up(); | |
12.times(() => game.Roll(10)); | |
game.Roll(1); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment