import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;

import static org.junit.jupiter.api.Assertions.*;
//=================================================================================================
public class JUnitPizzaCostTests {
//-------------------------------------------------------------------------------------------------
    @Test
    void testComputeArea() {

        assertEquals(Math.PI,JUnitPizzaCost.computeArea(2.0));
    }
//-------------------------------------------------------------------------------------------------
    @Test
    void testComputeUnitCost() {

        assertTrue(JUnitPizzaCost.computeUnitCost(12.0,10.0) > 0.0);
    }
//-------------------------------------------------------------------------------------------------
    @ParameterizedTest
    @ValueSource(doubles = {2.0,4.0,8.0,12.0})
    void testComputeUnitCostPrices(double cost) {

        assertTrue(JUnitPizzaCost.computeUnitCost(12.0,cost) > 0.0);
    }
//-------------------------------------------------------------------------------------------------
}
//=================================================================================================
