File tree Expand file tree Collapse file tree
test/ICSharpCode.SharpZipLib.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public void CreateEmptyArchive()
8080 pos += numRead ;
8181 }
8282
83- Assert . AreEqual ( pos , 0 ) ;
83+ Assert . Zero ( pos ) ;
8484 }
8585 }
8686
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public void EmptyTar()
3535 }
3636
3737 Assert . IsTrue ( ms . GetBuffer ( ) . Length > 0 , "Archive size must be > zero" ) ;
38- Assert . AreEqual ( ms . GetBuffer ( ) . Length % recordSize , 0 , "Archive size must be a multiple of record size" ) ;
38+ Assert . Zero ( ms . GetBuffer ( ) . Length % recordSize , "Archive size must be a multiple of record size" ) ;
3939
4040 var ms2 = new MemoryStream ( ) ;
4141 ms2 . Write ( ms . GetBuffer ( ) , 0 , ms . GetBuffer ( ) . Length ) ;
@@ -769,7 +769,7 @@ public void SingleLargeEntry()
769769 var tis = new TarInputStream ( bs ) ;
770770 var entry = tis . GetNextEntry ( ) ;
771771
772- Assert . AreEqual ( entry . Name , EntryName ) ;
772+ Assert . AreEqual ( EntryName , entry . Name ) ;
773773 return tis ;
774774 } ,
775775 output : bs =>
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ public void EmptyZipEntries()
189189 }
190190 }
191191 inStream . Close ( ) ;
192- Assert . AreEqual ( extractCount , 0 , "No data should be read from empty entries" ) ;
192+ Assert . Zero ( extractCount , "No data should be read from empty entries" ) ;
193193 }
194194
195195 /// <summary>
@@ -404,7 +404,7 @@ public void SingleLargeEntry()
404404 var zis = new ZipInputStream ( bs ) ;
405405 var entry = zis . GetNextEntry ( ) ;
406406
407- Assert . AreEqual ( entry . Name , EntryName ) ;
407+ Assert . AreEqual ( EntryName , entry . Name ) ;
408408 Assert . IsTrue ( ( entry . Flags & ( int ) GeneralBitFlags . Descriptor ) != 0 ) ;
409409 return zis ;
410410 } ,
You can’t perform that action at this time.
0 commit comments