test/tc_synchronize.rb in windows-pr-1.2.3 vs test/tc_synchronize.rb in windows-pr-1.2.4
- old
+ new
@@ -2,19 +2,19 @@
# tc_synchronize.rb
#
# Test case for the windows/synchronize package.
##################################################################
require "windows/synchronize"
-require "test/unit"
+require "minitest/autorun"
-class TC_Windows_Synchronize < Test::Unit::TestCase
+class TC_Windows_Synchronize < MiniTest::Unit::TestCase
include Windows::Synchronize
def setup
@handle = (0.chr * 16).unpack('LLLL')
end
-
+
def test_numeric_constants
assert_not_nil(INFINITE)
assert_not_nil(WAIT_OBJECT_0)
assert_not_nil(WAIT_TIMEOUT)
assert_not_nil(WAIT_ABANDONED)
@@ -41,11 +41,11 @@
assert_not_nil(MUTEX_ALL_ACCESS)
assert_not_nil(MUTEX_MODIFY_STATE)
assert_not_nil(SEMAPHORE_ALL_ACCESS)
assert_not_nil(SEMAPHORE_MODIFY_STATE)
end
-
+
def test_method_constants
assert_not_nil(CreateEvent)
assert_not_nil(CreateMutex)
assert_not_nil(CreateSemaphore)
assert_not_nil(DeleteCriticalSection)
@@ -66,10 +66,10 @@
assert_not_nil(WaitForMultipleObjects)
assert_not_nil(WaitForMultipleObjectsEx)
assert_not_nil(WaitForSingleObject)
assert_not_nil(WaitForSingleObjectEx)
end
-
+
def teardown
@handle = nil
end
end