gambas-source-code/comp/src/gb.test/.src/TestMyself/TestSetupCrash.class
Christof Thalhofer 6beaefbe1c new component gb.test
[GB.TEST]
* NEW: component for unittesting
2019-11-15 21:33:54 +00:00

62 lines
924 B
Text

' Gambas class file
Inherits UnitTest
Public Const ThisIsAnUnitTestSelfTest As Boolean = True
Public Sub SetupContainer()
' Leads to bail out
' Dim f As Float
' f = 2 / 0
Print "# Setup Container"
End
Public Sub TeardownContainer()
' Leads to bail out
' Dim f As Float
' f = 2 / 0
Print "# Teardown Container"
End
Public Sub SetupEach()
' Leads to bail out
' Dim f As Float
' f = 2 / 0
Print "# Setup Each"
End
Public Sub TeardownEach()
' Leads to bail out
' Dim f As Float
' f = 2 / 0
Print "# Teardown Each"
End
Public Sub TestFirstTest()
Assert.Null("", "Empty")
End
Public Sub TestSecondTest()
'Debug "Debug";; "TestExample2::Test Second Test"
Assert.EqualsLong(200, 200)
End
Public Sub TestThirdTest()
'Debug "Debug";; "TestExample2::Test Second Test"
Assert.True(True, "Intentionally skipped", Null, True)
End