File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,22 +10,6 @@ class IdContainer
1010 public int ID ;
1111 }
1212
13- [ TestMethod ]
14- public void BufferBlockObjectPool_FactoryTest ( )
15- {
16- int i = 0 ;
17- var pool = BufferBlockObjectPool . Create ( ( ) => new IdContainer { ID = ++ i } ) ;
18- Assert . AreEqual ( 1 , pool . Take ( ) . ID ) ;
19- }
20-
21- [ TestMethod ]
22- public void ConcurrentBagObjectPool_FactoryTest ( )
23- {
24- int i = 0 ;
25- var pool = ConcurrentBagObjectPool . Create ( ( ) => new IdContainer { ID = ++ i } ) ;
26- Assert . AreEqual ( 1 , pool . Take ( ) . ID ) ;
27- }
28-
2913 [ TestMethod ]
3014 public void OptimisticArrayObjectPool_FactoryTest ( )
3115 {
@@ -34,12 +18,5 @@ public void OptimisticArrayObjectPool_FactoryTest()
3418 Assert . AreEqual ( 1 , pool . Take ( ) . ID ) ;
3519 }
3620
37- [ TestMethod ]
38- public void LinkedListObjectPool_FactoryTest ( )
39- {
40- int i = 0 ;
41- var pool = LinkedListObjectPool . Create ( ( ) => new IdContainer { ID = ++ i } ) ;
42- Assert . AreEqual ( 1 , pool . Take ( ) . ID ) ;
43- }
4421 }
4522}
You can’t perform that action at this time.
0 commit comments