In my program i use raise "text" to prewent creating object when parameters are wrong.
How check this in Test/Unit ?
assert_ ? (MyObject.new(wrong,parameter))
how check my object was NOT created?
Aucun commentaire:
Enregistrer un commentaire