package com.red.circle.common.business.dto.rtc;

import org.junit.Assert;
import org.junit.Test;

public class RtcVersionSupportTest {

  @Test
  public void defaultProviderUsesTrtcFromMinVersion() {
    Assert.assertEquals(RtcProviderEnum.AGORA, RtcVersionSupport.defaultProvider("1.3.9"));
    Assert.assertEquals(RtcProviderEnum.TRTC, RtcVersionSupport.defaultProvider("1.4.0"));
    Assert.assertEquals(RtcProviderEnum.TRTC, RtcVersionSupport.defaultProvider("1.4.1"));
  }
}
