Skip to content

Commit 815895f

Browse files
committed
Fix the proxy test, why the body was even there?
1 parent 173533d commit 815895f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/RestSharp.IntegrationTests/ProxyTests.cs

-9
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ namespace RestSharp.IntegrationTests
88
[TestFixture]
99
public class ProxyTests
1010
{
11-
class RequestBodyCapturer
12-
{
13-
public const string RESOURCE = "Capture";
14-
}
15-
1611
[Test]
1712
public void Set_Invalid_Proxy_Fails()
1813
{
@@ -21,10 +16,6 @@ public void Set_Invalid_Proxy_Fails()
2116
var client = new RestClient(server.Url) {Proxy = new WebProxy("non_existent_proxy", false)};
2217
var request = new RestRequest();
2318

24-
const string contentType = "text/plain";
25-
const string bodyData = "abc123 foo bar baz BING!";
26-
27-
request.AddParameter(contentType, bodyData, ParameterType.RequestBody);
2819
var response = client.Get(request);
2920

3021
Assert.False(response.IsSuccessful);

0 commit comments

Comments
 (0)