Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > test/unit/testcaseライブラリ > Test::Unit::Errorクラス > new

singleton method Test::Unit::Error.new

new(test_name, exception) -> Test::Unit::Error

Test::Unit::Error オブジェクトのインスタンスを生成します。

[PARAM] test_name:
対応するテストメソッドの名前を指定します。
[PARAM] exception:
対応する例外オブジェクトを指定します。
class Test::Unit::Error