2019-11-15 22:33:54 +01:00
|
|
|
' Gambas module file
|
|
|
|
|
|
|
|
Public Sub Main()
|
|
|
|
|
2019-12-30 22:10:37 +01:00
|
|
|
' These must succeed:
|
2020-01-24 10:10:39 +01:00
|
|
|
|
|
|
|
' UnitTest.Main("TestAllAsserts", Null, True)
|
2019-12-30 22:10:37 +01:00
|
|
|
' UnitTest.Main("TestSetup", Null, True)
|
|
|
|
' UnitTest.Main("TestElse", Null, True)
|
|
|
|
' UnitTest.Main("TestError", Null, True)
|
|
|
|
' UnitTest.Main("TestSetupTeardown", Null, True)
|
|
|
|
|
|
|
|
' Here every test must fail:
|
2020-01-04 14:48:51 +01:00
|
|
|
' UnitTest.Main("TestFailures", Null, True)
|
|
|
|
' UnitTest.Main("TestBailout", Null, True)
|
2019-12-30 22:10:37 +01:00
|
|
|
|
|
|
|
'Test all
|
2019-12-31 01:47:37 +01:00
|
|
|
'UnitTest.Main(Null, Null, True)
|
2019-11-15 22:33:54 +01:00
|
|
|
|
2020-01-24 10:10:39 +01:00
|
|
|
' Just one test
|
|
|
|
UnitTest.Main("TestAllAsserts", "TestAssert", True)
|
|
|
|
|
2020-01-04 14:48:51 +01:00
|
|
|
'Cheese()
|
|
|
|
|
2019-11-15 22:33:54 +01:00
|
|
|
End
|
2020-01-04 14:48:51 +01:00
|
|
|
|
|
|
|
' Private Sub Cheese()
|
|
|
|
'
|
|
|
|
' Dim UT As New UnitTest
|
|
|
|
'
|
|
|
|
' Print UT.AllTestContainers.Join(", ")
|
|
|
|
'
|
|
|
|
' End
|
|
|
|
|