1 of 2

Is it ok to use static assertions in (unit) tests?

Or more generally: to trigger compiler errors in test projects if something that can be checked at compile time is wrong?