Sha256: dd2385080ff52f5982738838925568f844968ef4390e3b3d1b263303f290f95c

Contents?: true

Size: 842 Bytes

Versions: 35

Compression:

Stored size: 842 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

35 entries across 35 versions & 1 rubygems

Version Path
librex-0.0.63 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.54 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.53 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.52 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.51 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.50 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.49 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.48 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.47 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.46 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.44 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.43 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.42 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.41 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.40 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.39 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.38 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.37 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.36 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb
librex-0.0.35 lib/rex/post/meterpreter/extensions/stdapi/railgun/buffer_item.rb.ut.rb