Sha256: 0bc745882ccd2561374dcb8348503051e6ff610601ba45687eb9357a9bb421e4
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- $:.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb |
librex-0.0.66 | lib/rex/post/meterpreter/extensions/stdapi/railgun/api_constants.rb.ut.rb |