@@ -68,7 +68,7 @@ public void TestStackPool()
6868
6969 // Keep a copy to verify its length is reset
7070 collection = obj . Object ;
71- Assert . NotEqual ( 0 , collection . Count ) ;
71+ Assert . NotEmpty ( collection ) ;
7272 }
7373
7474 Assert . Empty ( collection ) ;
@@ -87,7 +87,7 @@ public void TestQueuePool()
8787
8888 // Keep a copy to verify its length is reset
8989 collection = obj . Object ;
90- Assert . NotEqual ( 0 , collection . Count ) ;
90+ Assert . NotEmpty ( collection ) ;
9191 }
9292
9393 Assert . Empty ( collection ) ;
@@ -106,7 +106,7 @@ public void TestHashSetPool()
106106
107107 // Keep a copy to verify its length is reset
108108 collection = obj . Object ;
109- Assert . NotEqual ( 0 , collection . Count ) ;
109+ Assert . NotEmpty ( collection ) ;
110110 }
111111
112112 Assert . Empty ( collection ) ;
@@ -125,7 +125,7 @@ public void TestDictionaryPool()
125125
126126 // Keep a copy to verify its length is reset
127127 collection = obj . Object ;
128- Assert . NotEqual ( 0 , collection . Count ) ;
128+ Assert . NotEmpty ( collection ) ;
129129 }
130130
131131 Assert . Empty ( collection ) ;
@@ -144,7 +144,7 @@ public void TestListPool()
144144
145145 // Keep a copy to verify its length is reset
146146 collection = obj . Object ;
147- Assert . NotEqual ( 0 , collection . Count ) ;
147+ Assert . NotEmpty ( collection ) ;
148148 }
149149
150150 Assert . Empty ( collection ) ;
0 commit comments