MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / VerifyProxyTypeCompatilibily

Method VerifyProxyTypeCompatilibily

dotnet/src/webdriver/Proxy.cs:515–527  ·  view source on GitHub ↗
(ProxyKind compatibleProxy)

Source from the content-addressed store, hash-verified

513 }
514
515 private void VerifyProxyTypeCompatilibily(ProxyKind compatibleProxy)
516 {
517 if (this.proxyKind != ProxyKind.Unspecified && this.proxyKind != compatibleProxy)
518 {
519 string errorMessage = string.Format(
520 CultureInfo.InvariantCulture,
521 "Specified proxy type {0} is not compatible with current setting {1}",
522 compatibleProxy.ToString().ToUpperInvariant(),
523 this.proxyKind.ToString().ToUpperInvariant());
524
525 throw new InvalidOperationException(errorMessage);
526 }
527 }
528}

Callers 2

ProxyClass · 0.95
AddBypassAddressesMethod · 0.95

Calls 2

FormatMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected