diff options
author | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-08 09:11:39 +0000 |
---|---|---|
committer | suke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-08 09:11:39 +0000 |
commit | d42b96f521f1425fcadd0cb78296cb2e7dc5b63d (patch) | |
tree | 2781d1a71e7f21d01d40336cae6b14911554aaf0 /ext | |
parent | 1da80b3bea27ac083a2cfe9ea526cd0b48a62e6a (diff) | |
download | ruby-d42b96f521f1425fcadd0cb78296cb2e7dc5b63d.tar.gz ruby-d42b96f521f1425fcadd0cb78296cb2e7dc5b63d.tar.xz ruby-d42b96f521f1425fcadd0cb78296cb2e7dc5b63d.zip |
remove testOLEPARAM.rb
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/win32ole/tests/testOLEPARAM.rb | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/ext/win32ole/tests/testOLEPARAM.rb b/ext/win32ole/tests/testOLEPARAM.rb deleted file mode 100644 index 6baeee5eb..000000000 --- a/ext/win32ole/tests/testOLEPARAM.rb +++ /dev/null @@ -1,74 +0,0 @@ -# You need RubyUnit and MS Excel and MSI to run this test script - -require 'rubyunit' - -require 'win32ole' -require 'oleserver' - -class TestOLEPARAM < RUNIT::TestCase - include OLESERVER - def test_name - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - sh = classes.find {|c| c.name == 'Worksheet'} - saveas = sh.ole_methods.find {|m| m.name == 'SaveAs'} - param_names = saveas.params.collect{|p| p.name} - assert(param_names.size > 0) - assert(param_names.include?('Filename')) - end - def test_to_s - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - sh = classes.find {|c| c.name == 'Worksheet'} - saveas = sh.ole_methods.find {|m| m.name == 'SaveAs'} - param_names = saveas.params.collect{|p| "#{p}"} - assert(param_names.include?('Filename')) - end - def test_ole_type - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - methods = classes.find {|c| c.name == 'Worksheet'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert_equal('BSTR', f.params[0].ole_type) - methods = classes.find {|c| c.name == 'Workbook'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert_equal('XlSaveAsAccessMode', f.params[6].ole_type) - end - def test_ole_type_detail - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - methods = classes.find {|c| c.name == 'Worksheet'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert_equal(['BSTR'], f.params[0].ole_type_detail) - methods = classes.find {|c| c.name == 'Workbook'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert_equal(['USERDEFINED', 'XlSaveAsAccessMode'], f.params[6].ole_type_detail) - end - def test_input - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - methods = classes.find {|c| c.name == 'Worksheet'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert(f.params[0].input?) - end - - def test_output - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - methods = classes.find {|c| c.name == 'Worksheet'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert(!f.params[0].output?) - end - def test_optional - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - methods = classes.find {|c| c.name == 'Worksheet'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert(!f.params[0].optional?) - methods = classes.find {|c| c.name == 'Workbook'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert(f.params[0].optional?) - end - def test_ole_type_detail2 - classes = WIN32OLE_TYPE.ole_classes(MS_EXCEL_TYPELIB) - methods = classes.find {|c| c.name == 'Worksheet'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert_equal(nil, f.params[0].default) - methods = classes.find {|c| c.name == 'Workbook'}.ole_methods - f = methods.find {|m| m.name == 'SaveAs'} - assert_equal(1, f.params[6].default) - end -end |