public void OnVpnConnected_WhenSplitTunnelPermitMode_DoNotBlockInternet() { // Arrange Service.KillSwitch.KillSwitch killSwitch = GetKillSwitch(SplitTunnelMode.Permit); // Act killSwitch.OnVpnConnected(GetConnectedVpnState()); // Assert _firewall.Received(0) .EnableLeakProtection(new FirewallParams("127.0.0.1", dnsLeakOnly: false, interfaceIndex: 0, persistent: false)); }
public void OnVpnConnected_WhenSplitTunnelPermitMode_DoNotBlockInternet() { // Arrange Service.KillSwitch.KillSwitch killSwitch = GetKillSwitch(SplitTunnelMode.Permit); // Act killSwitch.OnVpnConnected(GetConnectedVpnState()); // Assert _firewall.Received(0) .EnableLeakProtection(new FirewallParams { ServerIp = "127.0.0.1" }); }