Sha256: 9f02c3dc0a27dcb0c3b042d8fdef22821a869b9a1c9190151f46ef4cfe2fa985
Contents?: true
Size: 839 Bytes
Versions: 1
Compression:
Stored size: 839 Bytes
Contents
#!/usr/bin/env ruby $:.unshift(File.join(File.dirname(__FILE__), '..', '..', '..','..','..','..','..', 'lib')) require 'rex/post/meterpreter/extensions/stdapi/railgun/buffer_item' require 'test/unit' module Rex module Post module Meterpreter module Extensions module Stdapi module Railgun class BufferItem::UnitTest < Test::Unit::TestCase def test_initialization target_belongs_to_param_n = 1 target_addr = 232323 target_length_in_bytes = 4 target_datatype = "DWORD" item = BufferItem.new(target_belongs_to_param_n, target_addr, target_length_in_bytes, target_datatype) assert_equal(target_belongs_to_param_n, item.belongs_to_param_n) assert_equal(target_addr, item.addr) assert_equal(target_length_in_bytes, item.length_in_bytes) assert_equal(target_datatype, item.datatype) end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.65 | lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb |