Sha256: 4726f43c25daddd92522605e84b2156ca24d490450cb6fe7cded1df7f560e88b
Contents?: true
Size: 978 Bytes
Versions: 16
Compression:
Stored size: 978 Bytes
Contents
require File.expand_path("../../../test_helper", __FILE__) class AbstractImplementerTest < Test::Unit::TestCase setup do @klass = VirtualBox::COM::AbstractImplementer @interface = mock("interface") @lib = mock("lib") end context "initialization" do should "make the interface accessible" do instance = @klass.new(@interface, @lib) assert_equal @interface, instance.interface end end context "base methods" do setup do @instance = @klass.new(@interface, @lib) end should "implement the read_property function" do assert_nothing_raised { @instance.read_property(:foo, :bar) } end should "implement the write_property function" do assert_nothing_raised { @instance.write_property(:foo, :bar, :opts) } end should "implement the call_function function" do assert_nothing_raised { @instance.call_function(:foo, [], :opts) } end end end
Version data entries
16 entries across 16 versions & 3 rubygems