2015-01-29 15:02:26 +01:00
|
|
|
' Gambas class file
|
|
|
|
|
|
|
|
Public Sub _new()
|
|
|
|
|
|
|
|
Dim testco As New TestSuite
|
2015-10-31 09:22:52 +01:00
|
|
|
Dim singletest As TestCase
|
2015-01-29 15:02:26 +01:00
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
Public Sub Form_Open()
|
|
|
|
|
2015-01-30 07:46:43 +01:00
|
|
|
Dim f As New TestResult
|
2015-10-31 09:22:52 +01:00
|
|
|
Dim blub As Variant
|
|
|
|
Dim test As New TestCase
|
2015-01-30 07:46:43 +01:00
|
|
|
|
2015-10-31 09:22:52 +01:00
|
|
|
f.AssertEqualsFloat(1.23, 1, 0, "Test Float equals")
|
|
|
|
f.AssertNotEmpty(blub)
|
2015-01-30 07:46:43 +01:00
|
|
|
test.Run(f)
|
|
|
|
|
2015-10-31 09:22:52 +01:00
|
|
|
Debug f.Errors.Count
|
|
|
|
f.EndTest
|
|
|
|
|
2015-01-29 15:02:26 +01:00
|
|
|
End
|