RegressionTests__Win32OLETests.st
changeset 1356 a8e8d673f22e
parent 1355 8844ec16d47b
child 1372 a990b4eb7030
equal deleted inserted replaced
1355:8844ec16d47b 1356:a8e8d673f22e
     1 "{ Encoding: utf8 }"
       
     2 
       
     3 "{ Package: 'exept:regression' }"
     1 "{ Package: 'exept:regression' }"
     4 
     2 
     5 "{ NameSpace: RegressionTests }"
     3 "{ NameSpace: RegressionTests }"
     6 
     4 
     7 TestCase subclass:#Win32OLETests
     5 TestCase subclass:#Win32OLETests
    45     self assert:(iid_IEnum printString = '{2AE64960-CDDD-101C-9029-040224007802}').
    43     self assert:(iid_IEnum printString = '{2AE64960-CDDD-101C-9029-040224007802}').
    46 
    44 
    47     "
    45     "
    48      self new test00_loadOLE
    46      self new test00_loadOLE
    49     "
    47     "
       
    48 !
       
    49 
       
    50 test01_SysAllocString
       
    51     |ole rslt bstr|
       
    52 
       
    53     ole := OLEAutomationDLL current.
       
    54     rslt := ole SysAllocString: 'hello World'.
       
    55 
       
    56     self assert:(rslt notNil).
       
    57     bstr := BSTR atAddress:rslt.
       
    58 self halt.
       
    59 
       
    60     "
       
    61      self new test01_SysAllocString
       
    62     "
    50 ! !
    63 ! !
    51 
    64 
    52 !Win32OLETests class methodsFor:'documentation'!
    65 !Win32OLETests class methodsFor:'documentation'!
    53 
    66 
    54 version
    67 version