Introduce custom asserts for this. What you are currently writing is hard to read.