Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ public static IEnumerable<object[]> ConnectAsync_CustomInvokerWithIncompatibleWe
yield return NoThrow(options => options.UseDefaultCredentials = false);
yield return Throw(options => options.Credentials = new NetworkCredential());
yield return Throw(options => options.Proxy = new WebProxy());
yield return Throw(options => options.ClientCertificates.Add(Test.Common.Configuration.Certificates.GetClientCertificate()));

// Will result in an exception on apple mobile platforms
// and crash the test.
if (PlatformDetection.IsNotAppleMobile)
{
yield return Throw(options => options.ClientCertificates.Add(Test.Common.Configuration.Certificates.GetClientCertificate()));
}

yield return NoThrow(options => options.ClientCertificates = new X509CertificateCollection());
yield return Throw(options => options.RemoteCertificateValidationCallback = delegate { return true; });
yield return Throw(options => options.Cookies = new CookieContainer());
Expand Down