このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 1.8.7 リファレンスマニュアル

singleton method Test::Unit::TestCase.new

new(test_method_name) -> Test::Unit::TestCase[permalink][rdoc]

このメソッドをユーザが直接呼ぶことはありません。

test_method_name に対応した TestCase オブジェクトを生成して返します。

[PARAM] test_method_name:
テストメソッドの名前を文字列で与えます。