package com.foxx.androidcast.network.usb;

import com.foxx.androidcast.CastConfig;

import org.junit.Test;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

public class UsbTetherTransportFactoryTest {

    @Test
    public void recognizesUsbTetherId() {
        assertTrue(UsbTetherTransportFactory.isTransportId(CastConfig.TRANSPORT_USB_TETHER));
        assertFalse(UsbTetherTransportFactory.isTransportId(CastConfig.TRANSPORT_UDP));
    }

    @Test
    public void stubNotLinkAvailable() {
        assertFalse(UsbTetherCastTransport.createStub().isUsbLinkAvailable());
    }
}
