quick tests
authorClaus Gittinger <cg@exept.de>
Fri, 16 Jan 2009 11:57:20 +0100
changeset 197 f44d22a08808
parent 196 dcb0bf7a713a
child 198 92164cab7ac3
quick tests
TestCase.st
--- a/TestCase.st	Fri Oct 31 15:36:19 2008 +0100
+++ b/TestCase.st	Fri Jan 16 11:57:20 2009 +0100
@@ -235,6 +235,24 @@
 			
 ! !
 
+!TestCase class methodsFor:'quick testing'!
+
+assert: aBoolean
+    ^ self new assert: aBoolean
+
+    "
+     TestCase assert: true
+    "
+!
+
+should: aBlock raise: anError
+    ^ self new should: aBlock raise: anError
+
+    "
+     TestCase should:[ self error ] raise: Error
+    "
+! !
+
 !TestCase class methodsFor:'testing'!
 
 isAbstract
@@ -748,7 +766,7 @@
 !TestCase class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/goodies/sunit/TestCase.st,v 1.48 2008-10-31 13:12:47 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/goodies/sunit/TestCase.st,v 1.49 2009-01-16 10:57:20 cg Exp $'
 ! !
 
 TestCase initialize!