package tsconst

import "testing"

func TestIsWindowsTunnelInterfaceDescRecognizesMirageBranding(t *testing.T) {
	if !IsWindowsTunnelInterfaceDesc("Mirage Tunnel") {
		t.Fatal(`IsWindowsTunnelInterfaceDesc("Mirage Tunnel") = false, want true`)
	}
	if !IsWindowsTunnelInterfaceDesc("Tailscale Tunnel") {
		t.Fatal(`IsWindowsTunnelInterfaceDesc("Tailscale Tunnel") = false, want true`)
	}
	if !IsWindowsTunnelInterfaceDesc("Wintun Userspace Tunnel") {
		t.Fatal(`IsWindowsTunnelInterfaceDesc("Wintun Userspace Tunnel") = false, want true`)
	}
	if IsWindowsTunnelInterfaceDesc("Intel(R) Wi-Fi 6E AX211 160MHz") {
		t.Fatal("IsWindowsTunnelInterfaceDesc unexpectedly matched a non-tunnel description")
	}
}
