Sha256: d2862d4d265a59234733f648368a691f97afdbcda84c1c54721dd0203a7d1221

Contents?: true

Size: 713 Bytes

Versions: 12

Compression:

Stored size: 713 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..','..','..','..'))

require 'rex/post/meterpreter/extensions/stdapi/railgun/api_constants'
require 'rex/post/meterpreter/extensions/stdapi/railgun/win_const_manager'
require 'rex/text'
require 'test/unit'

module Rex
module Post
module Meterpreter
module Extensions
module Stdapi
module Railgun
class ApiConstants::UnitTest < Test::Unit::TestCase
	def test_add_constants
		const_manager = WinConstManager.new

		ApiConstants.add_constants(const_manager)

		assert_equal(0, const_manager.parse('SUCCESS'),
			"ApiConstants.add_constants should have added WinAPI constants to given constant manager")
	end
end
end
end
end
end
end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
librex-0.0.42 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.41 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.40 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.39 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.38 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.37 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.36 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.35 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.34 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.33 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.32 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb
librex-0.0.31 lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb