File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,25 @@ MpMethodProxyTest >> testUninstall [
484
484
self assert: (MpClassA compiledMethodAt: #methodOne ) == method ]
485
485
]
486
486
487
+ { #category : ' tests - installation' }
488
+ MpMethodProxyTest >> testUninstallMethodDict [
489
+
490
+ | mp method sendersSize |
491
+ [
492
+ sendersSize := MpClassA methodDict keys size.
493
+ method := MpClassA >> #methodOne .
494
+ mp := MpMethodProxy onMethod: method handler: self handlerClass new .
495
+ mp install.
496
+
497
+ self assert: MpClassA methodDict keys size equals: sendersSize + 1 .
498
+ self assert: (MpClassA methodDict keys select: [ :selector | selector class = MpHiddenSelector ]) size equals: 1 ]
499
+ ensure : [
500
+ mp uninstall.
501
+
502
+ self assert: MpClassA methodDict keys size equals: sendersSize .
503
+ self assert: (MpClassA methodDict keys select: [ :selector | selector class = MpHiddenSelector ]) size equals: 0 ]
504
+ ]
505
+
487
506
{ #category : ' tests - installation' }
488
507
MpMethodProxyTest >> testUninstallNestedInRightOrderIsOk [
489
508
You can’t perform that action at this time.
0 commit comments