@@ -302,8 +302,8 @@ public void DownloadGzippedFile()
302302 // The file has a Content-Encoding of gzip, and it's stored compressed.
303303 // We should still be able to download it, and the result should be the original plain text.
304304 var stream = new MemoryStream ( ) ;
305- _fixture . Client . DownloadObject ( StorageFixture . TestBucket , "gzipped-text.txt" , stream ) ;
306- var expected = Encoding . UTF8 . GetBytes ( "hello world" ) ;
305+ _fixture . Client . DownloadObject ( StorageFixture . TestBucket , StorageFixture . GzippedObjectName , stream ) ;
306+ var expected = Encoding . UTF8 . GetBytes ( StorageFixture . GzippedObjectContent ) ;
307307 var actual = stream . ToArray ( ) ;
308308 Assert . Equal ( expected , actual ) ;
309309 }
@@ -322,8 +322,8 @@ public void DownloadGzippedFile_NoClientDecompression()
322322 } ) ;
323323 var client = new StorageClientImpl ( service ) ;
324324 var stream = new MemoryStream ( ) ;
325- client . DownloadObject ( StorageFixture . TestBucket , "gzipped-text.txt" , stream ) ;
326- var expected = Encoding . UTF8 . GetBytes ( "hello world" ) ;
325+ client . DownloadObject ( StorageFixture . TestBucket , StorageFixture . GzippedObjectName , stream ) ;
326+ var expected = Encoding . UTF8 . GetBytes ( StorageFixture . GzippedObjectContent ) ;
327327 var actual = stream . ToArray ( ) ;
328328 Assert . Equal ( expected , actual ) ;
329329 }
@@ -340,9 +340,9 @@ public void DownloadGzippedFile_NoClientDecompression_IgnoreHash()
340340 } ) ;
341341 var client = new StorageClientImpl ( service ) ;
342342 var stream = new MemoryStream ( ) ;
343- client . DownloadObject ( StorageFixture . TestBucket , "gzipped-text.txt" , stream ,
343+ client . DownloadObject ( StorageFixture . TestBucket , StorageFixture . GzippedObjectName , stream ,
344344 new DownloadObjectOptions { DownloadValidationMode = DownloadValidationMode . Never } ) ;
345- var expected = Encoding . UTF8 . GetBytes ( "hello world" ) ;
345+ var expected = Encoding . UTF8 . GetBytes ( StorageFixture . GzippedObjectContent ) ;
346346 var actual = stream . ToArray ( ) ;
347347 Assert . Equal ( expected , actual ) ;
348348 }
@@ -359,9 +359,9 @@ public void DownloadGzippedFile_NoClientDecompression_AutomaticValidationMode()
359359 } ) ;
360360 var client = new StorageClientImpl ( service ) ;
361361 var stream = new MemoryStream ( ) ;
362- var obj = client . DownloadObject ( StorageFixture . TestBucket , "gzipped-text.txt" , stream ,
362+ var obj = client . DownloadObject ( StorageFixture . TestBucket , StorageFixture . GzippedObjectName , stream ,
363363 new DownloadObjectOptions { DownloadValidationMode = DownloadValidationMode . Automatic } ) ;
364- var expected = Encoding . UTF8 . GetBytes ( "hello world" ) ;
364+ var expected = Encoding . UTF8 . GetBytes ( StorageFixture . GzippedObjectContent ) ;
365365 var actual = stream . ToArray ( ) ;
366366 Assert . Equal ( expected , actual ) ;
367367 }
0 commit comments