type=class
superclass=MiniTest=Unit=TestCase
included=Test=Unit=Assertions
extended=
library=test.unit.testcase

ƥȤδñ(뤤ϡ֥ƥΡ)ɽ饹Ǥ
ƥȤԤ᥽å(ƥȥ᥽å) TestCase Υ֥饹Υ󥹥󥹥᥽å
Ȥޤƥȥ᥽åɤ̾ϡtestפǻϤޤäƤʤФʤޤ
դˡtestפǻϤޤäƤ᥽åɤƥƥȥ᥽åɤȸʤޤ

 require 'test/unit'
 
 class TC_String < Test::Unit::TestCase
   def test_size
     assert_equal('abc'.size, 3)
   end

   def test_concat
     assert_raise(TypeError) do
       'abc' + 1
     end
   end
 end
 

 TestCase ֥ȤϡҤȤĤΥƥȥ᥽åɤбƤޤƥȤ¹Ԥˤϡ
ƥȥ᥽åɤο TestCase ֥Ȥޤ

Ties everything together. If you subclass and add your own test methods, it takes care of making them into tests and wrapping those tests into a suite. It also does the nitty-gritty of actually running an individual test and collecting its results into a [[c:Test::Unit::TestResult]] object.
