Sha256: 7fa4cfa09872f0fee55110e3368e8e8e39bd12a4b61759028057517e52e7c1c8

Contents?: true

Size: 1.14 KB

Versions: 36

Compression:

Stored size: 1.14 KB

Contents

#####################################################################
# tc_file_mapping.rb
#
# Test case for the Windows::FileMapping module.
#####################################################################
require 'windows/file_mapping'
require 'test/unit'

class FileMappingFoo
   include Windows::FileMapping
end

class TC_Windows_FileMapping < Test::Unit::TestCase
  
   def setup
      @foo = FileMappingFoo.new
   end
   
   def test_numeric_constants
      assert_equal(0x00000001, FileMappingFoo::FILE_MAP_COPY)
      assert_equal(0x00000002, FileMappingFoo::FILE_MAP_WRITE)
      assert_equal(0x00000004, FileMappingFoo::FILE_MAP_READ)
      assert_equal(983071, FileMappingFoo::FILE_MAP_ALL_ACCESS)
   end
   
   def test_method_constants
      assert_not_nil(FileMappingFoo::CreateFileMapping)
      assert_not_nil(FileMappingFoo::FlushViewOfFile)
      assert_not_nil(FileMappingFoo::MapViewOfFile)
      assert_not_nil(FileMappingFoo::MapViewOfFileEx)
      assert_not_nil(FileMappingFoo::OpenFileMapping)
      assert_not_nil(FileMappingFoo::UnmapViewOfFile)
   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_file_mapping.rb
windows-pr-1.2.1 test/tc_file_mapping.rb
windows-pr-1.2.0 test/tc_file_mapping.rb
windows-pr-1.1.2 test/tc_file_mapping.rb
windows-pr-1.1.1 test/tc_file_mapping.rb
windows-pr-1.1.0 test/tc_file_mapping.rb
windows-pr-1.0.9 test/tc_file_mapping.rb
windows-pr-1.0.8 test/tc_file_mapping.rb
windows-pr-1.0.7 test/tc_file_mapping.rb
windows-pr-1.0.6 test/tc_file_mapping.rb
windows-pr-0.8.7 test/tc_file_mapping.rb
windows-pr-0.8.3 test/tc_file_mapping.rb
windows-pr-0.7.3 test/tc_file_mapping.rb
windows-pr-0.7.4 test/tc_file_mapping.rb
windows-pr-0.8.1 test/tc_file_mapping.rb
windows-pr-0.8.2 test/tc_file_mapping.rb
windows-pr-0.8.4 test/tc_file_mapping.rb
windows-pr-0.8.5 test/tc_file_mapping.rb
windows-pr-0.8.6 test/tc_file_mapping.rb
windows-pr-0.8.0 test/tc_file_mapping.rb