source: trunk/TestCase/SimpleTestCase/GCHandleTest.ab@ 383

Last change on this file since 383 was 383, checked in by イグトランス (egtra), 16 years ago

SPrintf関数の実装

File size: 563 bytes
RevLine 
[230]1'--------------------------------------------------------------------
2' Test case of GCHandle Class
3'--------------------------------------------------------------------
4
5Namespace GCHandleTest
6
7Sub TestMain()
[383]8 Imports System.Runtime.InteropServices
9
[230]10 Dim o = New Object
[383]11 Dim gch = GCHandle.Alloc(o)
[230]12 UnitTest("GCHandle.Alloc, Target", o.Equals(gch.Target))
13
[383]14 Dim ip = GCHandle.ToIntPtr(gch)
[230]15 gch = Nothing
16
[383]17 gch = GCHandle.FromIntPtr(ip)
[230]18 UnitTest("GCHandle - IntPtr", o.Equals(gch.Target))
19End Sub
20
21End Namespace
22
23GCHandleTest.TestMain()
Note: See TracBrowser for help on using the repository browser.