Recording method names in assertions