package de.arxsilex.maptools.converter.desktop

import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue

class SelectionVisualStyleTest {
    @Test
    fun `active selection uses a stronger petrol fill and gold outline`() {
        val active = selectionVisualStyle(active = true)
        val inactive = selectionVisualStyle(active = false)

        assertEquals(Petrol900.copy(alpha = 0.20f), active.fillColor)
        assertEquals(Amber300, active.outlineColor)
        assertEquals(3f, active.outlineWidthDp)
        assertTrue(active.fillColor.alpha > inactive.fillColor.alpha)
    }

    @Test
    fun `inactive selection remains visible without competing with the active area`() {
        val style = selectionVisualStyle(active = false)

        assertEquals(Petrol900.copy(alpha = 0.12f), style.fillColor)
        assertEquals(Petrol860.copy(alpha = 0.88f), style.outlineColor)
        assertEquals(2f, style.outlineWidthDp)
    }
}
