package fr.umlv.fruits;

import static org.junit.Assert.*;

import org.junit.Test;

public class OrangeTest {
  @Test 
  public void testGetCountry() {
    Orange orange = new Orange("France", 100);
    assertEquals("France", orange.getCountry());
  }

  @Test
  public void testGetPrice() {
    Orange orange = new Orange("Marroco", 33);
    assertEquals(33, orange.getPrice());
  }
  
  @Test(expected=IllegalArgumentException.class)
  public void testInvalidPrice() {
    Orange orange = new Orange("Marroco", -1);
  }
}
