2020-02-23 12:38:53 +01:00
|
|
|
' Gambas test file
|
2019-12-30 22:10:37 +01:00
|
|
|
|
|
|
|
' Signal, that this is a selftest
|
|
|
|
Public Const ThisIsAnUnitTestSelfTest As Boolean = True
|
2020-02-23 12:38:53 +01:00
|
|
|
Public Plan As Integer = 5
|
2019-12-30 22:10:37 +01:00
|
|
|
|
|
|
|
' A Test with no message, should display then method name as message
|
|
|
|
|
|
|
|
Public Sub TestNoMessage()
|
|
|
|
|
|
|
|
'There is no message whicht
|
|
|
|
Assert.True(True)
|
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
Public Sub TestNoMessageInbetween()
|
|
|
|
|
|
|
|
Assert.True(True, "TestNoMessageInbetween Assert 1 description defined")
|
|
|
|
Assert.True(True)
|
|
|
|
Assert.True(True, "Assert 3 description defined")
|
|
|
|
Assert.True(True)
|
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
Public Sub TestNote()
|
|
|
|
|
2020-02-23 12:38:53 +01:00
|
|
|
Assert.Note("This\nis\na\nnote")
|
2019-12-30 22:10:37 +01:00
|
|
|
|
|
|
|
End
|