package com.skraylabs.poker;

import com.skraylabs.poker.model.Card;

import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;

import java.util.ArrayList;
import java.util.Collection;

public class NOfAKindTest {
  @Rule
  public ExpectedException exception = ExpectedException.none();

  @Test
  public void negativeNumberCausesException() {
    exception.expect(IllegalArgumentException.class);
    Collection<Card> cards = new ArrayList<Card>();

    ProbabilityCalculator.hasNOfAKind(cards, -1);
  }
}

@@ -528,11 +528,224 @@
 -1);%0A  %7D
+%0A%0A  @Test%0A  public void zeroNumberCausesException() %7B%0A    exception.expect(IllegalArgumentException.class);%0A    Collection%3CCard%3E cards = new ArrayList%3CCard%3E();%0A%0A    ProbabilityCalculator.hasNOfAKind(cards, 0);%0A  %7D
 %0A%7D%0A

Add another test case for number = 0.