* Throw with ParamName=value instead of Encoding
* Update WebClientTest.cs
get { return _encoding; }
set
{
- ThrowIfNull(value, nameof(Encoding));
+ ThrowIfNull(value, nameof(value));
_encoding = value;
}
}
var wc = new WebClient();
AssertExtensions.Throws<ArgumentException>("value", () => { wc.BaseAddress = "http::/invalid url"; });
- AssertExtensions.Throws<ArgumentNullException>("Encoding", () => { wc.Encoding = null; });
+ AssertExtensions.Throws<ArgumentNullException>("value", () => { wc.Encoding = null; });
}
[Fact]