package ru.job4j.loop;

import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
* Test.
*
* @author Filatov Evgeniy (not-found@inbox.ru)
* @version 1
* @since 18.06.2017
*/

public class CounterTest {
	/**
	*Test: sum of even numbers in range.
	*/
	@Test
	public void sumOfEvenNumbersIn1to10rangeEqualsTo30() {
		Counter testExemplar = new Counter();
		assertThat(testExemplar.add(1, 10), is(30));
	}
}