Sha256: 96952e3ff20524668e744a378665f5f00519e0eafac23a6c84fe76987bdffdd0

Contents?: true

Size: 1.04 KB

Versions: 26

Compression:

Stored size: 1.04 KB

Contents

#####################################################################
# tc_com.rb
#
# Test case for the Windows::COM module.
#####################################################################
require "windows/com"
require "test/unit"

class TC_Windows_COM < Test::Unit::TestCase
   include Windows::COM

   def test_method_constants
      assert_respond_to(self, :BindMoniker)
      assert_respond_to(self, :CLSIDFromProgID)
      assert_respond_to(self, :CLSIDFromProgIDEx)
      assert_respond_to(self, :CoAddRefServerProcess)
      assert_respond_to(self, :CoAllowSetForegroundWindow)
      assert_respond_to(self, :CoCancelCall)
      assert_respond_to(self, :CoCopyProxy)
      assert_respond_to(self, :CoCreateFreeThreadedMarshaler)
      assert_respond_to(self, :CoCreateGuid)
      assert_respond_to(self, :CoCreateInstance)
   end

   def test_numeric_constants
      assert_equal(0, VT_EMPTY)
      assert_equal(1, VT_NULL)
      assert_equal(2, VT_I2)
      assert_equal(3, VT_I4)
      assert_equal(4, VT_R4)
   end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
windows-pr-1.2.2 test/tc_com.rb
windows-pr-1.2.1 test/tc_com.rb
windows-pr-1.2.0 test/tc_com.rb
windows-pr-1.1.2 test/tc_com.rb
windows-pr-1.1.1 test/tc_com.rb
windows-pr-1.1.0 test/tc_com.rb
windows-pr-1.0.9 test/tc_com.rb
windows-pr-1.0.8 test/tc_com.rb
windows-pr-1.0.7 test/tc_com.rb
windows-pr-1.0.6 test/tc_com.rb
windows-pr-0.9.7 test/tc_com.rb
windows-pr-0.9.6 test/tc_com.rb
windows-pr-0.9.1 test/tc_com.rb
windows-pr-0.9.2 test/tc_com.rb
windows-pr-0.9.3 test/tc_com.rb
windows-pr-0.9.4 test/tc_com.rb
windows-pr-0.9.9 test/tc_com.rb
windows-pr-1.0.3 test/tc_com.rb
windows-pr-1.0.4 test/tc_com.rb
windows-pr-1.0.0 test/tc_com.rb