RegressionTests__SunitXMLOutputTest.st
author Claus Gittinger <cg@exept.de>
Wed, 24 Oct 2012 16:15:10 +0200
changeset 691 bcd41a79591a
parent 688 1c29b8c21b75
child 698 b2f40afc0b18
permissions -rw-r--r--
added:5 methods

"{ Package: 'exept:regression' }"

"{ NameSpace: RegressionTests }"

TestCase subclass:#SunitXMLOutputTest
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'tests-Regression'
!


!SunitXMLOutputTest methodsFor:'testing'!

test01_shouldBeOK_01
    self assert:true.

    "
     self new test01_shouldBeOK_01
    "
!

test02_shouldBeOK_02
    self should:[ self error ] raise:Error

    "
     self new test02_shouldBeOK_02
    "
!

test03_shouldError_01
    self error.

    "
     self new test03_shouldError_01
    "
!

test04_shouldError_02
    self error:'this is an error message'.

    "
     self new test04_shouldError_02
    "
!

test05_shouldError_03
    |d|

    d := 0.
    Transcript showCR:'expect a division by zero error soon...'.
    Transcript showCR:(5 / d).

    "
     self new test05_shouldError_03
    "
!

test06_shouldFail
    self assert:false.

    "
     self new test06_shouldFail
    "
! !

!SunitXMLOutputTest class methodsFor:'documentation'!

version
    ^ '$Header$'
!

version_CVS
    ^ '$Header$'
! !