Sha256: 5b8cdb75352f0563a43838e8a4db07d65eb06b7fcfef4d8da42ccc3544ea79a6
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
######################################################################## # test_ace.rb # # Test suite for the Win32::Security::ACE class. ######################################################################## require 'test-unit' require 'win32/security' require 'win32/security/sid' require 'win32/security/acl' require 'win32/security/ace' class TC_Win32_Security_Ace < Test::Unit::TestCase def setup @ace = Win32::Security::ACE.new(1, 1, 1) end test "ACE version is set to the expected value" do assert_equal('0.1.0', Win32::Security::ACE::VERSION) end test "ace_type basic functionality" do assert_respond_to(@ace, :ace_type) assert_equal(1, @ace.ace_type) end test "access_mask basic functionality" do assert_respond_to(@ace, :access_mask) assert_equal(1, @ace.access_mask) end test "flags basic functionality" do assert_respond_to(@ace, :flags) assert_equal(1, @ace.flags) end test "ace_type_string basic functionality" do assert_respond_to(@ace, :ace_type_string) assert_kind_of(String, @ace.ace_type_string) end test "ace_type_string returns the expected value" do assert_equal('ACCESS_DENIED_ACE_TYPE', @ace.ace_type_string) end def teardown @ace = nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
win32-security-0.3.1 | test/test_ace.rb |
win32-security-0.3.0 | test/test_ace.rb |