Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > test/unit/assertionsライブラリ > Test::Unit::Assertionsモジュール > assert_not_same

instance method Test::Unit::Assertions#assert_not_same

assert_not_same(expected, actual, message="") -> ()

!actual.equal?(expected) が真ならパスします。

[EXCEPTION] Test::Unit::AssertionFailedError:
assert が失敗した時に発生します。