2018-10-12 20:21:59 -04:00
|
|
|
begin
|
|
|
|
require 'win32ole'
|
|
|
|
rescue LoadError
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
|
|
|
|
if defined?(WIN32OLE_PARAM)
|
2018-10-20 10:34:30 -04:00
|
|
|
require_relative 'available_ole'
|
2018-10-12 20:21:59 -04:00
|
|
|
|
|
|
|
class TestWIN32OLE_PARAM_EVENT < Test::Unit::TestCase
|
2018-10-20 10:34:30 -04:00
|
|
|
if AvailableOLE.msxml_available? || AvailableOLE.ado_available?
|
2018-10-12 20:21:59 -04:00
|
|
|
def setup
|
2018-10-20 10:34:30 -04:00
|
|
|
@param = AvailableOLE.event_param
|
2018-10-12 20:21:59 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_input?
|
2018-10-20 10:34:30 -04:00
|
|
|
assert_equal(true, @param.input?)
|
2018-10-12 20:21:59 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_output?
|
2018-10-20 10:34:30 -04:00
|
|
|
assert_equal(true, @param.output?)
|
|
|
|
end
|
|
|
|
else
|
|
|
|
def test_dummy_for_skip_message
|
2022-01-11 07:19:26 -05:00
|
|
|
omit 'ActiveX Data Object Library and MS XML not found'
|
2018-10-12 20:21:59 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|