package pl.firmatpp.kierowca.data.sync

import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test

class NetworkMonitorTest {
    @Test
    fun captivePortalIsNotTreatedAsOnline() {
        assertFalse(hasValidatedInternetCapabilities(hasInternet = true, hasValidated = false))
    }

    @Test
    fun validatedInternetIsOnline() {
        assertTrue(hasValidatedInternetCapabilities(hasInternet = true, hasValidated = true))
    }
}
