package de.effigenix.domain.production;

import de.effigenix.shared.common.UnitOfMeasure;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

@DisplayName("UnitOfMeasure Enum")
class UnitOfMeasureTest {

    @Test
    @DisplayName("should have 6 values")
    void should_HaveSixValues() {
        assertThat(UnitOfMeasure.values()).hasSize(6);
    }

    @Test
    @DisplayName("should have correct symbols")
    void should_HaveCorrectSymbols() {
        assertThat(UnitOfMeasure.KILOGRAM.symbol()).isEqualTo("kg");
        assertThat(UnitOfMeasure.GRAM.symbol()).isEqualTo("g");
        assertThat(UnitOfMeasure.LITER.symbol()).isEqualTo("L");
        assertThat(UnitOfMeasure.MILLILITER.symbol()).isEqualTo("mL");
        assertThat(UnitOfMeasure.PIECE.symbol()).isEqualTo("pc");
        assertThat(UnitOfMeasure.METER.symbol()).isEqualTo("m");
    }
}
