Revision 283809f3 trunk/Pithos.Network.Test/NetworkOpsTest.cs
b/trunk/Pithos.Network.Test/NetworkOpsTest.cs | ||
---|---|---|
120 | 120 |
|
121 | 121 |
|
122 | 122 |
string downloadFile = "test2.txt"; |
123 |
using (var stream = client.GetObject("Shares", testFileName)) |
|
124 |
using (var file = File.Create(downloadFile, 4096, FileOptions.DeleteOnClose)) |
|
125 |
{ |
|
126 |
stream.CopyTo(file); |
|
127 |
Assert.IsTrue(File.Exists(downloadFile)); |
|
128 |
} |
|
123 |
client.GetObject("Shares", testFileName, downloadFile) |
|
124 |
.Wait(); |
|
125 |
|
|
126 |
Assert.IsTrue(File.Exists(downloadFile)); |
|
129 | 127 |
|
130 | 128 |
}); |
131 | 129 |
|
Also available in: Unified diff