File tree Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Expand file tree Collapse file tree 3 files changed +31
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ public void DetectsOwnZip()
10
10
{
11
11
Assert . True (
12
12
new IsZipArchive (
13
- new Zipped ( "some/path/file.txt" , new InputOf ( "Some Data" ) )
13
+ new Zipped (
14
+ "some/path/file.txt" ,
15
+ new InputOf ( "Some Data" )
16
+ )
14
17
) . Value ( )
15
18
) ;
16
19
}
Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ public void IsThreadSafe()
51
51
[ Fact ]
52
52
public void ListsAllPaths ( )
53
53
{
54
- var paths =
55
- new ZipPaths (
56
- new ResourceOf ( "Datum/example.zip" , this . GetType ( ) )
57
- ) ;
58
54
Assert . Equal (
59
55
6 ,
60
- new Atoms . Enumerable . LengthOf ( paths ) . Value ( )
56
+ new Atoms . Enumerable . LengthOf (
57
+ new ZipPaths (
58
+ new ResourceOf ( "Datum/example.zip" , this . GetType ( ) )
59
+ )
60
+ ) . Value ( )
61
61
) ;
62
62
}
63
63
Original file line number Diff line number Diff line change 1
- using Xunit ;
1
+ using System . Collections . Generic ;
2
+ using Xunit ;
3
+ using Yaapii . Atoms ;
2
4
using Yaapii . Atoms . IO ;
3
5
using Yaapii . Atoms . Text ;
4
6
@@ -24,5 +26,24 @@ public void HasContent()
24
26
) . AsString ( )
25
27
) ;
26
28
}
29
+
30
+ [ Fact ]
31
+ public void HasFiles ( )
32
+ {
33
+ Assert . Equal (
34
+ 2 ,
35
+ new Atoms . Enumerable . LengthOf (
36
+ new ZipPaths (
37
+ new Zipped (
38
+ new Dictionary < string , IInput > ( )
39
+ {
40
+ { "small.dat" , new InputOf ( "I feel so compressed" ) } ,
41
+ { "smaller.dat" , new InputOf ( "I'm so compressed" ) }
42
+ }
43
+ )
44
+ )
45
+ ) . Value ( )
46
+ ) ;
47
+ }
27
48
}
28
49
}
You can’t perform that action at this time.
0 commit comments