There are two cases to consider: Asserting that an exception will be thrown, and asserting that an exception will not be thrown.
The latter is not necessary, but can still be a good idea. It's an opportunity to provide a more explicit description in the assertion message of what you were expecting to happen, or not to happen. But, you can skip STAssertNoThrow
and the exception will still fail the test.
If you want the exception to happen, then you will need to assert that, like you did in the code in the question. You should provide a meaningful assertion message, though, rather than the empty string.