Skip to content
Browse files

Refactor

  • Loading branch information...
1 parent a73c88c commit 13a4da6f24b3327f66c87b0196fa9b3d17341700 @dansweeting committed Nov 23, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 pokr.tests.unit/Domain/Builders/CardsBuilder.cs
View
6 pokr.tests.unit/Domain/Builders/CardsBuilder.cs
@@ -59,9 +59,11 @@ public CardsBuilder WithFlush(Suit suit, int max)
{
var rand = new Random();
- for (int i = 0; i < 5; i++)
+ _cards.Add(new Card(suit,max));
+
+ for (int i = 0; i < 4; i++)
{
- _cards.Add(new Card(suit, rand.Next(max+1)));
+ _cards.Add(new Card(suit, rand.Next(max)));
}
return this;

0 comments on commit 13a4da6

Please sign in to comment.
Something went wrong with that request. Please try again.