Sha256: 8bc52ce735a5dccc2be94674a973ce633c2c05c8d57bc9a4863618063ee69d21

Contents?: true

Size: 864 Bytes

Versions: 36

Compression:

Stored size: 864 Bytes

Contents

#####################################################################
# tc_shell.rb
#
# Test case for the Windows::Shell module.
#####################################################################
require 'windows/shell'
require 'test/unit'

class ShellFoo
   include Windows::Shell
end

class TC_Windows_Shell < Test::Unit::TestCase
   def setup
      @foo = ShellFoo.new
   end

   def test_numeric_constants
      assert_equal(0, ShellFoo::CSIDL_DESKTOP)
      assert_equal(1, ShellFoo::CSIDL_INTERNET)
      assert_equal(2, ShellFoo::CSIDL_PROGRAMS)
   end
   
   def test_method_constants
      assert_not_nil(ShellFoo::DragQueryFile)
      assert_not_nil(ShellFoo::ExtractIcon)
      assert_not_nil(ShellFoo::ExtractIconEx)
      assert_not_nil(ShellFoo::ShellAbout)
   end
   
   def teardown
      @foo = nil
   end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
windows-pr-1.2.2 test/tc_shell.rb
windows-pr-1.2.1 test/tc_shell.rb
windows-pr-1.2.0 test/tc_shell.rb
windows-pr-1.1.2 test/tc_shell.rb
windows-pr-1.1.1 test/tc_shell.rb
windows-pr-1.1.0 test/tc_shell.rb
windows-pr-1.0.9 test/tc_shell.rb
windows-pr-1.0.8 test/tc_shell.rb
windows-pr-1.0.7 test/tc_shell.rb
windows-pr-1.0.6 test/tc_shell.rb
windows-pr-0.8.0 test/tc_shell.rb
windows-pr-0.7.4 test/tc_shell.rb
windows-pr-0.7.3 test/tc_shell.rb
windows-pr-0.8.4 test/tc_shell.rb
windows-pr-0.8.5 test/tc_shell.rb
windows-pr-0.8.6 test/tc_shell.rb
windows-pr-0.8.7 test/tc_shell.rb
windows-pr-0.8.2 test/tc_shell.rb
windows-pr-0.8.3 test/tc_shell.rb
windows-pr-0.8.1 test/tc_shell.rb