Setting `WebProxy.BypassList` to null throws (#40656)
authorBekir Ozturk <60651445+bozturkMSFT@users.noreply.github.com>
Fri, 23 Oct 2020 15:38:01 +0000 (17:38 +0200)
committerGitHub <noreply@github.com>
Fri, 23 Oct 2020 15:38:01 +0000 (11:38 -0400)
commit8713a04c225c00c4c4b00dc9ae4b904c62c522f6
tree604a17a5639fbaf92f3bfa507fe0102f0190634d
parent0fa63e23a0db7c8bccadd83188818366c5a30b54
Setting `WebProxy.BypassList` to null throws (#40656)

* Argument validation in WebProxy BypassList setter

* Updated a failing test

* Added tests for new BypassList behavior

* Updated the tests for new BypassList behavior

* Added AllowNull attribute on BypassList property

* Update src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs

Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.Net.WebProxy/ref/System.Net.WebProxy.cs
src/libraries/System.Net.WebProxy/src/System/Net/WebProxy.cs
src/libraries/System.Net.WebProxy/tests/WebProxyTest.cs