(ProxyKind compatibleProxy)
| 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 | } |
no test coverage detected