Sha256: 3ac10584f8c0409a8335400ca83a186ac39655649c7c66947e044aa0d4ebf878
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
##################################################################### # tc_memory.rb # # Test case for the Windows::Memory module. ##################################################################### require 'windows/memory' require 'minitest/autorun' class MemoryFoo include Windows::Memory end class TC_Windows_Memory < MiniTest::Test def setup @foo = MemoryFoo.new @path = "C:\\" end def test_numeric_constants assert_not_nil(MemoryFoo::GHND) assert_not_nil(MemoryFoo::GMEM_FIXED) assert_not_nil(MemoryFoo::GMEM_MOVABLE) assert_not_nil(MemoryFoo::GMEM_ZEROINIT) assert_not_nil(MemoryFoo::GPTR) end def test_method_constants assert_not_nil(MemoryFoo::GlobalAlloc) assert_not_nil(MemoryFoo::GlobalFlags) assert_not_nil(MemoryFoo::GlobalFree) assert_not_nil(MemoryFoo::GlobalHandle) assert_not_nil(MemoryFoo::GlobalLock) assert_not_nil(MemoryFoo::GlobalMemoryStatus) assert_not_nil(MemoryFoo::GlobalMemoryStatusEx) assert_not_nil(MemoryFoo::GlobalReAlloc) assert_not_nil(MemoryFoo::GlobalSize) assert_not_nil(MemoryFoo::GlobalUnlock) end def teardown @foo = nil @path = nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windows-pr-1.2.6 | test/tc_memory.rb |
windows-pr-1.2.5 | test/tc_memory.rb |