File tree Expand file tree Collapse file tree 4 files changed +2
-118
lines changed
AngleSharp.Io.Tests/Network Expand file tree Collapse file tree 4 files changed +2
-118
lines changed Original file line number Diff line number Diff line change 1
1
namespace AngleSharp . Io . Tests . Network
2
2
{
3
- using AngleSharp . Io . Network ;
3
+ using AngleSharp . Network . Default ;
4
4
using FluentAssertions ;
5
5
using NUnit . Framework ;
6
6
using System ;
7
- using System . Collections . Generic ;
8
7
using System . IO ;
9
8
using System . Net ;
10
9
@@ -25,42 +24,6 @@ public void Initialize()
25
24
response . Address . Should ( ) . BeNull ( ) ;
26
25
}
27
26
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
-
64
27
class DisposableStream : Stream
65
28
{
66
29
public override Boolean CanRead
Original file line number Diff line number Diff line change 53
53
<Compile Include =" Dom\WebSocket.cs" />
54
54
<Compile Include =" Interfaces\IStorage.cs" />
55
55
<Compile Include =" Network\HttpClientRequester.cs" />
56
- <Compile Include =" Network\Response.cs" />
57
56
<Compile Include =" Properties\AssemblyInfo.cs" />
58
57
</ItemGroup >
59
58
<ItemGroup >
Original file line number Diff line number Diff line change 2
2
{
3
3
using AngleSharp . Io . Extensions ;
4
4
using AngleSharp . Network ;
5
+ using AngleSharp . Network . Default ;
5
6
using System ;
6
7
using System . Collections . Generic ;
7
8
using System . Linq ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments