refs #8372. Replace other assert method

This assert method is not supported cross platform.
Merge branch 'feature/8372_to_lam' into develop