Changeset 342 for trunk/TestCase
- Timestamp:
- Sep 29, 2007, 12:44:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TestCase/SimpleTestCase/DelegateTest.ab
r340 r342 5 5 Delegate Sub Callback3( a As Long ) 6 6 Delegate Sub Callback4( a As String ) 7 Delegate Function Callback7( ) As Long7 Delegate Function Callback7( str As String ) As String 8 8 9 9 … … 59 59 End Sub 60 60 61 Function Proc7() As String62 Return "Proc7 result "61 Static Function Proc7( str As String ) As String 62 Return "Proc7 result[" + str + "]" 63 63 End Function 64 64 End Class … … 79 79 80 80 UnitTest( "Delegate1", testObj.CheckFlags() ) 81 /* 81 82 82 Dim dg7 = New Callback7( AddressOf(TestClass.Proc7) ) 83 UnitTest( "Delegate2", dg7( ) = "Proc7 result" )84 */ 83 UnitTest( "Delegate2", dg7( "test value" ) = "Proc7 result[test value]" ) 84 85 85 End Sub 86 86
Note:
See TracChangeset
for help on using the changeset viewer.