mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/win32ole/test_win32ole_type.rb (test_initialize): add
more assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
692ea1bb83
commit
0753c79be2
2 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Jul 6 18:34:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* test/win32ole/test_win32ole_type.rb (test_initialize): add
|
||||
more assertions.
|
||||
|
||||
Sun Jul 6 10:12:21 2008 Kouhei Sutou <kou@cozmixng.org>
|
||||
|
||||
* lib/test/unit/collector/objectspace.rb
|
||||
|
|
|
@ -30,7 +30,22 @@ if defined?(WIN32OLE_TYPE)
|
|||
}
|
||||
ole_type = WIN32OLE_TYPE.new("Microsoft Shell Controls And Automation", "Shell")
|
||||
assert_instance_of(WIN32OLE_TYPE, ole_type)
|
||||
|
||||
assert_equal("Shell", ole_type.name)
|
||||
assert_equal("Class", ole_type.ole_type)
|
||||
assert_equal("{13709620-C279-11CE-A49E-444553540000}", ole_type.guid)
|
||||
assert_equal("Shell.Application.1", ole_type.progid)
|
||||
assert_equal(true, ole_type.visible?)
|
||||
assert_equal("Shell", ole_type.to_s)
|
||||
assert_equal(0, ole_type.major_version)
|
||||
assert_equal(0, ole_type.minor_version)
|
||||
assert_equal(5, ole_type.typekind)
|
||||
assert_equal("Shell Object Type Information", ole_type.helpstring)
|
||||
assert_equal(nil, ole_type.src_type)
|
||||
assert_equal("", ole_type.helpfile)
|
||||
assert_equal(0, ole_type.helpcontext)
|
||||
assert_equal([], ole_type.variables)
|
||||
assert(ole_type.ole_methods.select{|m|/NameSpace/i =~ m.name}.size > 0)
|
||||
|
||||
ole_type2 = WIN32OLE_TYPE.new("{13709620-C279-11CE-A49E-444553540000}", "Shell")
|
||||
assert_instance_of(WIN32OLE_TYPE, ole_type)
|
||||
assert_equal(ole_type.name, ole_type2.name)
|
||||
|
|
Loading…
Reference in a new issue