package ru.job4j;

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

/**.
 * CalculatorTest.
 *
 * @author Anton Vasilyuk (wrajina99@gmail.com)
 * @version $Id$
 * @since 0.1
 */

 public class CalculatorTest {

	/**.
	* Тест сложения
	* @param first
	* @param second
	*/
	@Test
	public void testWhenAddOneToOneThenTwo() {
		Calculator calc = new Calculator();
		calc.add(1, 1);
		final double result = calc.getResult();
		assertThat(result, is(2d));

	}

	/**.
	* Тест Вычитание
	* @param first
	* @param second
	*/
	@Test
	public void testWhenSubstructOneToOneThenZero() {
		Calculator calc = new Calculator();
		calc.substruct(2, 1);
		final double result = calc.getResult();
		assertThat(result, is(1d));

	}

	/**.
	* Тест Деление
	* @param first
	* @param second
	*/
	@Test
	public void testWhenDifOneToOneThenOne() {
		Calculator calc = new Calculator();
		calc.dif(1, 1);
		final double result = calc.getResult();
		assertThat(result, is(1d));

	}

	/**.
	* Тест Умножение
	* @param first
	* @param second
	*/
	@Test
	public void testWhenMultipleOneToOneThenOne() {
		Calculator calc = new Calculator();
		calc.multiple(1, 1);
		final double result = calc.getResult();
		assertThat(result, is(1d));

	}

}
@@ -288,41 +288,8 @@
 %D0%BD%D0%B8%D1%8F%0A
-%09* @param first%0A%09* @param second%0A
 %09*/%0A

update file chapter_001