public void GameMarkSetAsPointForTeamShouldThrowIfArgumentIsNegativeZeroOrGreaterThanTwo() { var game = new PingPongGame(); game.GenerateSets(11); game.Start(); game.MarkSetAsPointForTeam(-1); game.MarkSetAsPointForTeam(0); game.MarkSetAsPointForTeam(3); }
public void GameMarkSetAsPointForTeamShouldMarkCurrentSetAsAPointForAGivenTeam() { var game = new PingPongGame(); game.GenerateSets(11); game.Start(); game.MarkSetAsPointForTeam(1); var expected = 1; var actual = game.CurrentSet.ForTeam; Assert.AreEqual(expected, actual); }
public void GameMarkSetAsPointForTeamShouldThrowIfArgumentIsNegativeZeroOrGreaterThanTwo() { var game = new PingPongGame(); game.GenerateSets(11); game.Start(); game.MarkSetAsPointForTeam(-1); game.MarkSetAsPointForTeam(0); game.MarkSetAsPointForTeam(3); }
public void GameMarkSetAsPointForTeamShouldMarkCurrentSetAsAPointForAGivenTeam() { var game = new PingPongGame(); game.GenerateSets(11); game.Start(); game.MarkSetAsPointForTeam(1); var expected = 1; var actual = game.CurrentSet.ForTeam; Assert.AreEqual(expected, actual); }