gambas-source-code/main/lib/test/gb.test/.src/TestMyself/TSummary.test

38 lines
582 B
Text
Raw Normal View History

2020-04-10 11:15:17 +02:00
' Gambas test file
''' This test can be executed to test a summary. Will fail.
2020-04-10 11:15:17 +02:00
'' Will succeed
2020-04-10 11:15:17 +02:00
Public Sub DoSomeAsserts()
Assert.Pass("Bla 1")
Assert.Pass("Bla 2")
Assert.Pass("Bla 3")
End
'' Will succeed
Public Sub DoSkip()
2020-04-10 11:15:17 +02:00
Assert.Skip("Report that a test is skipped.")
2020-04-10 11:15:17 +02:00
End
'' Will succeed
Public Sub DoTodo()
2020-04-10 11:15:17 +02:00
Assert.Todo("Because not ok yet.")
Assert.Ok(False, "Must be ok.")
Assert.Todo("This Todo seems not to be removed yet.")
Assert.Ok(True, "Must be ok.")
2020-04-10 11:15:17 +02:00
End
'' Will fail
2020-04-10 11:15:17 +02:00
Public Sub DoOneFailure()
Assert.Ok(False, "Intentional failure")
2020-04-26 11:01:48 +02:00
End