Assertion verification working with If statements.