SimpleCalculatorTest.java (427B)
1 package nl.isygameclient.models; 2 3 import static org.junit.jupiter.api.Assertions.assertEquals; 4 5 import org.junit.jupiter.api.Test; 6 7 class 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 }