Sha256: 0a78e8d1b6329fcd974f7a625e130bcaddcf1a333f4fa6d9334e8d8728dbef88
Contents?: true
Size: 919 Bytes
Versions: 13
Compression:
Stored size: 919 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_manager const_manager = ApiConstants.manager assert_equal(0, const_manager.parse('SUCCESS'), "ApiConstants.manager should return a functional constant manager for WinAPI constants") end 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
13 entries across 13 versions & 1 rubygems