July 10, 2013
4:45 p.m.
What you want is a TAssertable>>#should:raise: that: - takes a one arg block as second argument that is evaluated with the exception thrown - fails if no exception is raised
Then please call it #should:raise:suchThat: That's what is in upcoming SUnit 5.0 [1] Also I would avoid using traits in SUnit, this is non-portable. The TestAsserter class was introduced already in SUnit 4.0. Indeed, only if you at all care about having SUnit in sync with other dialects :-) Best, Jan [1]: https://swing.fit.cvut.cz/hg/stx.goodies.sunit/file/fb932a5daa97/TestAsserte...