File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Source/HttpMultipartParser.UnitTests/ParserScenarios Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ public void Invalid_part_is_ignored()
5454 using ( Stream stream = TestUtil . StringToStream ( _testCase . Request , Encoding . UTF8 ) )
5555 {
5656 var parser = MultipartFormDataParser . Parse ( stream , ignoreInvalidParts : true ) ;
57- Assert . Equal ( 0 , parser . Files . Count ) ;
58- Assert . Equal ( 0 , parser . Parameters . Count ) ;
57+ Assert . Empty ( parser . Files ) ;
58+ Assert . Empty ( parser . Parameters ) ;
5959 }
6060 }
6161
@@ -65,8 +65,8 @@ public async Task Invalid_part_is_ignored_async()
6565 using ( Stream stream = TestUtil . StringToStream ( _testCase . Request , Encoding . UTF8 ) )
6666 {
6767 var parser = await MultipartFormDataParser . ParseAsync ( stream , ignoreInvalidParts : true ) ;
68- Assert . Equal ( 0 , parser . Files . Count ) ;
69- Assert . Equal ( 0 , parser . Parameters . Count ) ;
68+ Assert . Empty ( parser . Files ) ;
69+ Assert . Empty ( parser . Parameters ) ;
7070 }
7171 }
7272 }
You can’t perform that action at this time.
0 commit comments