Sha256: e1721dc6061354ce2ec9eb08db5832064491bf5ee9a3c2c36fd6076e76fccc8a

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

#####################################################################
# tc_window_dialog.rb
#
# Test case for the Windows::Window::Dialog module.
#####################################################################
require 'windows/window/dialog'
require 'minitest/autorun'

class WindowDialogFoo
   include Windows::Window::Dialog
end

class TC_Windows_Window_Dialog < MiniTest::Test
   def setup
      @foo = WindowDialogFoo.new
   end

   def test_numeric_constants
      assert_equal(0, WindowDialogFoo::MB_OK)
   end

   def test_method_constants
      assert_not_nil(WindowDialogFoo::MessageBox)
   end

   def test_method_mixin
      assert_respond_to(@foo, :MessageBox)
   end

   def teardown
      @foo = nil
   end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
windows-pr-1.2.6 test/tc_window_dialog.rb
windows-pr-1.2.5 test/tc_window_dialog.rb