Sha256: b14a472412b6dadefaa69e711a392d47e1b57ab52f4280d64f38fd29d63fbf7a

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

########################################################################
# test_security.rb
#
# Test suite for the Win32::Security base class. You should run these
# tests via the rake test tasks.
########################################################################
require 'test-unit'
require 'win32/security'

class TC_Win32_Security < Test::Unit::TestCase
  test "version constant is set to expected value" do
    assert_equal('0.5.0', Win32::Security::VERSION)
  end

  test "elevated security basic functionality" do
    assert_respond_to(Win32::Security, :elevated_security?)
    assert_boolean(Win32::Security.elevated_security?)
  end

  test "ffi functions are private" do
    assert_not_respond_to(Win32::Security, :CloseHandle)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
win32-security-0.5.0 test/test_security.rb