Pattern: Assignment in assert statement
Issue: -
Variable is modified inside assert statement. Assert statements are removed from release builds so the code inside assert statement is not executed. If the code is needed also in release builds, this is a bug.