Created
December 11, 2012 00:29
-
-
Save patmaddox/4254655 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Object < #STestCase | |
| instanceVariableNames: 'name'. | |
| + newWithName: aString | |
| ^ self new name: aString; yourself. | |
| - name: aString | |
| name := aString. | |
| - run | |
| self perform: name. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| STestCase < #WasRun | |
| instanceVariableNames: 'wasRun'. | |
| - initialize | |
| super initialize. | |
| wasRun := 'wasRun: false'. | |
| - wasRun | |
| ^ wasRun. | |
| - testMethod | |
| wasRun := 'wasRun: true'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment