SimpleCalculatorTest.java (427B) download
1package nl.isygameclient.models;
2
3import static org.junit.jupiter.api.Assertions.assertEquals;
4
5import org.junit.jupiter.api.Test;
6
7class SimpleCalculatorTest {
8 @Test
9 void twoPlusTwoShouldEqualFour() {
10 var calculator = new SimpleCalculator();
11 assertEquals(4, calculator.add(2, 2));
12 }
13
14 @Test
15 void ThreePlusSevenShouldEqualTen() {
16 var calculator = new SimpleCalculator();
17 assertEquals(10, calculator.add(3, 7));
18 }
19}