diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-30 09:51:48 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-30 09:51:48 +0000 |
commit | 14f0a0d0bd25b02ced6d43c6335ecc9bf68fe605 (patch) | |
tree | 5a6fa1c2ce3db817d744100f30f34b798e76295d /ext/win32ole/tests | |
parent | 0bace243b0635dd4eef5be1a855400708f09ac4e (diff) |
add WIN32OLE_TYPE#ole_typelib, WIN32OLE_TYPE#implemented_ole_types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32ole/tests')
-rw-r--r-- | ext/win32ole/tests/testOLETYPE.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/win32ole/tests/testOLETYPE.rb b/ext/win32ole/tests/testOLETYPE.rb index d4eb1146e1..510691484f 100644 --- a/ext/win32ole/tests/testOLETYPE.rb +++ b/ext/win32ole/tests/testOLETYPE.rb @@ -93,4 +93,19 @@ class TestOLETYPE < RUNIT::TestCase type = WIN32OLE_TYPE.new(MS_EXCEL_TYPELIB, 'Application') assert_equal("Application", "#{type}"); end + def test_ole_typelib + type = WIN32OLE_TYPE.new(MS_EXCEL_TYPELIB, 'Application') + tlib = type.ole_typelib + assert_instance_of(WIN32OLE_TYPELIB, tlib); + assert_equal(MS_EXCEL_TYPELIB, tlib.name); + end + + def test_implemented_ole_types + type = WIN32OLE_TYPE.new(MS_EXCEL_TYPELIB, 'Application') + impltypes = type.implemented_ole_types + assert_instance_of(Array, impltypes); + assert_equal('_Application', impltypes[0].name) + assert_equal('AppEvents', impltypes[1].name) + end + end |