assertResult API refactored.