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

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

 require 'test/unit'
 require 'test/unit/ui/console/testrunner'
 
 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
 
 suite = TC_String.suite
 Test::Unit::UI::Console::TestRunner.run(suite)

 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.
