Skip to content

Commit 2e80dd4

Browse files
committed
Removed duplicated class
1 parent a8b7960 commit 2e80dd4

File tree

4 files changed

+2
-118
lines changed

4 files changed

+2
-118
lines changed

src/AngleSharp.Io.Tests/Network/ResponseTests.cs

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
namespace AngleSharp.Io.Tests.Network
22
{
3-
using AngleSharp.Io.Network;
3+
using AngleSharp.Network.Default;
44
using FluentAssertions;
55
using NUnit.Framework;
66
using System;
7-
using System.Collections.Generic;
87
using System.IO;
98
using System.Net;
109

@@ -25,42 +24,6 @@ public void Initialize()
2524
response.Address.Should().BeNull();
2625
}
2726

28-
[Test]
29-
public void DisposesContentAndHeaders()
30-
{
31-
// ARRANGE
32-
var stream = new DisposableStream();
33-
var response = new Response
34-
{
35-
Content = stream,
36-
Headers = new Dictionary<String, String>
37-
{
38-
{"Server", "Fake"},
39-
{"X-Foo", "Bar"}
40-
}
41-
};
42-
43-
// ACT
44-
response.Dispose();
45-
46-
// ASSERT
47-
stream.Disposed.Should().BeTrue();
48-
response.Headers.Should().BeEmpty();
49-
}
50-
51-
[Test]
52-
public void DisposesNothingWhenContentIsNull()
53-
{
54-
// ARRANGE
55-
var response = new Response {Content = null};
56-
57-
// ACT
58-
Action action = () => response.Dispose();
59-
60-
// ASSERT
61-
action.ShouldNotThrow();
62-
}
63-
6427
class DisposableStream : Stream
6528
{
6629
public override Boolean CanRead

src/AngleSharp.Io/AngleSharp.Io.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
<Compile Include="Dom\WebSocket.cs" />
5454
<Compile Include="Interfaces\IStorage.cs" />
5555
<Compile Include="Network\HttpClientRequester.cs" />
56-
<Compile Include="Network\Response.cs" />
5756
<Compile Include="Properties\AssemblyInfo.cs" />
5857
</ItemGroup>
5958
<ItemGroup>

src/AngleSharp.Io/Network/HttpClientRequester.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{
33
using AngleSharp.Io.Extensions;
44
using AngleSharp.Network;
5+
using AngleSharp.Network.Default;
56
using System;
67
using System.Collections.Generic;
78
using System.Linq;

src/AngleSharp.Io/Network/Response.cs

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)