forked from GrupoHunter/Soufrabi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
someWorkspace
42 lines (30 loc) · 836 Bytes
/
someWorkspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"Test to the Interface"
i := Interface new.
i selectors: #(#method #method: #methodA #methodA: #methodB:with:).
exI := ExampleInterface new.
i isCompliant: ExampleInterface.
i query: exl.
i isUnderstoodBy: exl.
i addNeededStubsIn: ExampleInterface.
y := Interface new.
y selectors: #(#bla #ble #method #methodC).
y isCompliant: ExampleInterface.
y query: exl.
y isUnderstoodBy: exl.
y addNeededStubsIn: ExampleInterface.
"Test to the Delegator"
exs := ExampleOS new.
ex := ExampleO new.
ex bla: exs.
ex class instVarNames.
ex ble: 'hellooo'.
ex respondsTo: #ble.
exs respondsTo: #nah:.
exs class canUnderstand: #nah.
ex ble.
exs perform: #nah: with: 2.
del := IVDelegator on: ex.
del sendMessage: #nah: with: 2.
del sendMessage: #ble.
del sendMessage: #ble withArguments: #().
del sendMessage: #nah: withArguments: #(2).