Sha256: 7b6b3cc3a2315838fd990bb8ab02022f9abc2b136154c20acef341193ef14443

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 Bytes

Contents

#!/usr/bin/env ruby
# -*- coding: binary -*-

$:.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

2 entries across 2 versions & 1 rubygems

Version Path
librex-0.0.68 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.66 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb