c0b7e7db82
[GB.TEST] * NEW: Skip and Todo from Assert to Test
37 lines
600 B
Text
37 lines
600 B
Text
' Gambas test file
|
|
|
|
''' This test can be executed to test a summary. Will fail.
|
|
|
|
'' Will succeed
|
|
Public Sub DoSomeAsserts()
|
|
|
|
Assert.Pass("Bla 1")
|
|
Assert.Pass("Bla 2")
|
|
Assert.Pass("Bla 3")
|
|
|
|
End
|
|
|
|
'' Will succeed
|
|
Public Sub DoSkip()
|
|
|
|
Test.Skip("I skip this test to test Test.Skip.")
|
|
|
|
End
|
|
|
|
'' Will succeed
|
|
Public Sub DoTodo()
|
|
|
|
Test.Todo("This fails but is todo.")
|
|
Assert.Ok(False, "Must be ok.")
|
|
|
|
Test.Todo("This todo seems not to be removed yet, it is a bonus.")
|
|
Assert.Ok(True, "Must be ok.")
|
|
|
|
End
|
|
|
|
'' Will fail
|
|
Public Sub DoOneFailure()
|
|
|
|
Assert.Ok(False, "Intentional failure")
|
|
|
|
End
|