[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / test / win32ole / test_win32ole_param_event.rb
blobf5a16ead7669d32a97535f6320c0c7faa0f4ceba
1 begin
2   require 'win32ole'
3 rescue LoadError
4 end
6 require 'test/unit'
8 if defined?(WIN32OLE::Param)
9   require_relative 'available_ole'
11   class TestWIN32OLE_PARAM_EVENT < Test::Unit::TestCase
12     if AvailableOLE.msxml_available? || AvailableOLE.ado_available?
13       def setup
14         @param = AvailableOLE.event_param
15       end
17       def test_input?
18         assert_equal(true, @param.input?)
19       end
21       def test_output?
22         assert_equal(true, @param.output?)
23       end
24     else
25       def test_dummy_for_skip_message
26         omit 'ActiveX Data Object Library and MS XML not found'
27       end
28     end
29   end
30 end