Sha256: e5d2c21286cf251d8ec957f1326622870057d17401cd95c56a65cfa6a76e1198

Contents?: true

Size: 427 Bytes

Versions: 8

Compression:

Stored size: 427 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')

class COMUtilTest < Test::Unit::TestCase
  setup do
    @klass = VirtualBox::COM::Util
  end

  context "checking for interfaces" do
    should "return true for existing interfaces" do
      assert @klass.interface?(:VirtualBox)
    end

    should "return false for non-existing interfaces" do
      assert !@klass.interface?(:IDontExist)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
virtualbox-0.7.5 test/virtualbox/com/util_test.rb
virtualbox-0.7.4 test/virtualbox/com/util_test.rb
virtualbox-0.7.3 test/virtualbox/com/util_test.rb
virtualbox-0.7.2 test/virtualbox/com/util_test.rb
virtualbox-0.7.1 test/virtualbox/com/util_test.rb
virtualbox-0.7.0 test/virtualbox/com/util_test.rb
virtualbox-0.6.1 test/virtualbox/com/util_test.rb
virtualbox-0.6.0 test/virtualbox/com/util_test.rb