refs #8372. Replace other assert method

This assert method is not supported cross platform.