2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-09-16 09:27:41 +00:00
|
|
|
|
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..'))
|
|
|
|
|
2005-12-13 06:08:40 +00:00
|
|
|
require 'rex/test'
|
2005-09-16 09:27:41 +00:00
|
|
|
require 'rex/proto/smb/constants'
|
|
|
|
|
|
|
|
class Rex::Proto::SMB::Constants::UnitTest < Test::Unit::TestCase
|
|
|
|
|
|
|
|
Klass = Rex::Proto::SMB::Constants
|
|
|
|
|
|
|
|
def test_defines
|
2006-05-30 16:11:00 +00:00
|
|
|
assert_equal(Klass::SMB_COM_CREATE_DIRECTORY, 0x00 )
|
|
|
|
assert_equal(Klass::SMB_COM_NT_CREATE_ANDX, 0xa2 )
|
2005-09-16 09:27:41 +00:00
|
|
|
assert_equal(Klass::NT_TRANSACT_QUERY_SECURITY_DESC, 0x06)
|
|
|
|
end
|
|
|
|
|
2008-10-19 21:03:39 +00:00
|
|
|
end
|