smalltalk
/
osmo-st-all
Archived
1
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
osmo-st-all/grease/Tests/Core/GRObjectTest.st

23 lines
506 B
Smalltalk

TestCase subclass: GRObjectTest [
<comment: nil>
<category: 'Grease-Tests-Core'>
testError [
"Make sure #error: signals a subclass of WAPlatformError."
<category: 'testing'>
self should: [GRObject new error: 'oh dear'] raise: GRError.
self should: [GRObject error: 'oh dear'] raise: GRError
]
testInitialize [
"Make sure #initialize is called on #new and that calling
'super initialize' doesn't error."
<category: 'testing'>
self assert: GRObjectStub new foo
]
]